()
| 105 | }; |
| 106 | |
| 107 | let onPressStart = () => { |
| 108 | // if shouldCloseOnPress is false, we should not close the tooltip |
| 109 | if (!shouldCloseOnPress) { |
| 110 | return; |
| 111 | } |
| 112 | // no matter how the trigger is pressed, we should close the tooltip |
| 113 | isFocused.current = false; |
| 114 | isHovered.current = false; |
| 115 | handleHide(true); |
| 116 | }; |
| 117 | |
| 118 | let onFocus = () => { |
| 119 | let isVisible = isFocusVisible(); |
nothing calls this directly
no test coverage detected