()
| 23 | }; |
| 24 | } |
| 25 | render() { |
| 26 | return React.createElement('div', { |
| 27 | children: [ |
| 28 | React.createElement('button', { |
| 29 | onClick: e => this.state.hideToolbox && this.show(e), |
| 30 | children: 'show text inside shadow DOM', |
| 31 | }), |
| 32 | this.state.hideToolbox ? null : React.createElement(Popup, { hide: e => this.hide(e) }), |
| 33 | ], |
| 34 | }); |
| 35 | } |
| 36 | show() { |
| 37 | this.setState({ hideToolbox: false }); |
| 38 | } |
no test coverage detected