(e)
| 195 | |
| 196 | // not mouseUp because scrollbar fires it, shouldn't close when user scrolls |
| 197 | handleBackdropClick(e) { |
| 198 | if (e.target === this._mouseDownElement) { |
| 199 | e.stopPropagation(); |
| 200 | |
| 201 | const backdrop = this._dialog ? this._dialog.parentNode : null; |
| 202 | |
| 203 | if ( |
| 204 | backdrop && |
| 205 | e.target === backdrop && |
| 206 | this.props.backdrop === 'static' |
| 207 | ) { |
| 208 | this.handleStaticBackdropAnimation(); |
| 209 | } |
| 210 | |
| 211 | if (!this.props.isOpen || this.props.backdrop !== true) return; |
| 212 | |
| 213 | if (backdrop && e.target === backdrop && this.props.toggle) { |
| 214 | this.props.toggle(e); |
| 215 | } |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | handleTab(e) { |
| 220 | if (e.which !== 9) return; |
nothing calls this directly
no test coverage detected
searching dependent graphs…