()
| 3 | let listenerAttached = false; |
| 4 | |
| 5 | const fixSafariActiveState = () => { |
| 6 | if (isSafari() && isIOS() && !listenerAttached) { |
| 7 | // Safari on iOS does not use the :active state unless there is a touchstart event handler on the <body> element |
| 8 | document.body.addEventListener("touchstart", () => {}); |
| 9 | listenerAttached = true; |
| 10 | } |
| 11 | }; |
| 12 | |
| 13 | export default fixSafariActiveState; |
no test coverage detected
searching dependent graphs…