Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/adobe/react-spectrum
/ handler
Function
handler
packages/react-aria/src/interactions/useFocusVisible.ts:319–321 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
317
let
[modality, setModality] = useState(currentModality);
318
useEffect(() => {
319
let
handler = () => {
320
setModality(currentModality);
321
};
322
323
changeHandlers.add(handler);
324
return
() => {
Callers
3
triggerChangeHandlers
Function · 0.70
createEventHandler
Function · 0.70
listener
Function · 0.50
Calls
3
isKeyboardFocusEvent
Function · 0.85
fn
Function · 0.85
isFocusVisible
Function · 0.85
Tested by
no test coverage detected