MCPcopy Create free account
hub / github.com/adobe/react-spectrum / onPressUp

Function onPressUp

packages/react-aria/src/toggle/useToggle.ts:159–166  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

157 setLabelPressed(false);
158 },
159 onPressUp(e) {
160 if (e.pointerType === 'keyboard' || e.pointerType === 'virtual') {
161 e.continuePropagation();
162 return;
163 }
164
165 onPressUp?.(e);
166 },
167 onClick,
168 onPress(e) {
169 if (e.pointerType === 'keyboard' || e.pointerType === 'virtual') {

Callers

nothing calls this directly

Calls 1

continuePropagationMethod · 0.65

Tested by

no test coverage detected