(e)
| 134 | } |
| 135 | }, |
| 136 | onPress(e) { |
| 137 | if (e.pointerType === 'touch' && !isDisabled) { |
| 138 | // Ensure trigger has focus before opening the menu so it can be restored by FocusScope on close. |
| 139 | focusWithoutScrolling(e.target as FocusableElement); |
| 140 | |
| 141 | state.toggle(); |
| 142 | } |
| 143 | } |
| 144 | }; |
| 145 | |
| 146 | // omit onPress from triggerProps since we override it above. |
nothing calls this directly
no test coverage detected