()
| 17375 | _inheritsLoose(ToggleButton, _React$Component); |
| 17376 | |
| 17377 | function ToggleButton() { |
| 17378 | var _this; |
| 17379 | |
| 17380 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| 17381 | args[_key] = arguments[_key]; |
| 17382 | } |
| 17383 | |
| 17384 | _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this; |
| 17385 | _this.state = { |
| 17386 | focused: false |
| 17387 | }; |
| 17388 | |
| 17389 | _this.handleFocus = function (e) { |
| 17390 | if (e.target.tagName === 'INPUT') _this.setState({ |
| 17391 | focused: true |
| 17392 | }); |
| 17393 | }; |
| 17394 | |
| 17395 | _this.handleBlur = function (e) { |
| 17396 | if (e.target.tagName === 'INPUT') _this.setState({ |
| 17397 | focused: false |
| 17398 | }); |
| 17399 | }; |
| 17400 | |
| 17401 | return _this; |
| 17402 | } |
| 17403 | |
| 17404 | var _proto = ToggleButton.prototype; |
| 17405 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…