()
| 95 | }; |
| 96 | |
| 97 | let onHoverEnd = () => { |
| 98 | if (trigger === 'focus') { |
| 99 | return; |
| 100 | } |
| 101 | // no matter how the trigger is left, we should close the tooltip |
| 102 | isFocused.current = false; |
| 103 | isHovered.current = false; |
| 104 | handleHide(); |
| 105 | }; |
| 106 | |
| 107 | let onPressStart = () => { |
| 108 | // if shouldCloseOnPress is false, we should not close the tooltip |
no test coverage detected