(environment)
| 23 | let canUseActiveElement; |
| 24 | |
| 25 | function determineCanUseActiveElement(environment) { |
| 26 | const env = |
| 27 | environment || (typeof window !== 'undefined' ? window : undefined); |
| 28 | |
| 29 | try { |
| 30 | canUseActiveElement = !!( |
| 31 | typeof env !== 'undefined' && |
| 32 | env.document && |
| 33 | env.document.activeElement |
| 34 | ); |
| 35 | // eslint-disable-next-line no-unused-vars |
| 36 | } catch (e) { |
| 37 | // Work around for IE bug when accessing document.activeElement in an iframe |
| 38 | // Refer to the following resources: |
| 39 | // http://stackoverflow.com/a/10982960/369687 |
| 40 | // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12733599 |
| 41 | // istanbul ignore next |
| 42 | canUseActiveElement = false; |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | const defaultProps = { |
| 47 | className: 'react-tabs', |
no outgoing calls
no test coverage detected
searching dependent graphs…