(prevProps, prevState)
| 128 | } |
| 129 | |
| 130 | componentDidUpdate(prevProps, prevState) { |
| 131 | if (this.props.isOpen && !prevProps.isOpen) { |
| 132 | this.init(); |
| 133 | this.setState({ isOpen: true }); |
| 134 | |
| 135 | return; |
| 136 | } |
| 137 | |
| 138 | // now Offcanvas Dialog is rendered and we can refer this._element and this._dialog |
| 139 | if (this.props.autoFocus && this.state.isOpen && !prevState.isOpen) { |
| 140 | this.setFocus(); |
| 141 | } |
| 142 | |
| 143 | if (this._element && prevProps.zIndex !== this.props.zIndex) { |
| 144 | this._element.style.zIndex = this.props.zIndex; |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | componentWillUnmount() { |
| 149 | this.clearBackdropAnimationTimeout(); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…