()
| 146 | }; |
| 147 | |
| 148 | const blurActiveElement = () => { |
| 149 | if (typeof document !== 'undefined') { |
| 150 | const activeElement = document.activeElement as HTMLElement | null; |
| 151 | if (activeElement?.blur) { |
| 152 | activeElement.blur(); |
| 153 | } |
| 154 | } |
| 155 | }; |
| 156 | |
| 157 | const fireOnStart = () => { |
| 158 | if (blurOnStart) { |