(e)
| 135 | let [isLabelPressed, setLabelPressed] = useState(false); |
| 136 | let {pressProps: labelProps} = usePress({ |
| 137 | onPressStart(e) { |
| 138 | // Keyboard interactions are handled directly on the input. |
| 139 | if (e.pointerType === 'keyboard' || e.pointerType === 'virtual') { |
| 140 | e.continuePropagation(); |
| 141 | return; |
| 142 | } |
| 143 | |
| 144 | onPressStart?.(e); |
| 145 | onPressChange?.(true); |
| 146 | setLabelPressed(true); |
| 147 | }, |
| 148 | onPressEnd(e) { |
| 149 | // Keyboard interactions are handled directly on the input. |
| 150 | if (e.pointerType === 'keyboard' || e.pointerType === 'virtual') { |
nothing calls this directly
no test coverage detected