MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / handleClose

Function handleClose

javascript/grid-ui/src/components/LiveView/LiveView.tsx:137–145  ·  view source on GitHub ↗
(event?: React.SyntheticEvent | Event,
    reason?: string)

Source from the content-addressed store, hash-verified

135 }
136
137 const handleClose = (event?: React.SyntheticEvent | Event,
138 reason?: string) => {
139 if (reason === 'clickaway') {
140 return
141 }
142 setOpenErrorAlert(false)
143 disconnect()
144 props.onClose()
145 }
146
147 return (
148 <div

Callers

nothing calls this directly

Calls 2

disconnectFunction · 0.85
onCloseMethod · 0.65

Tested by

no test coverage detected