useStopEventPropagation()
useStopEventPropagation(
method
:RQBMouseEventHandler
):RQBMouseEventHandler
Wraps an event handler function in another function that calls
event.preventDefault()
and event.stopPropagation()
first. The
returned function accepts and forwards a second context
argument.
Parameters
Parameter | Type |
---|---|
method | RQBMouseEventHandler |
Returns
RQBMouseEventHandler
Defined in
packages/react-querybuilder/src/hooks/useStopEventPropagation.ts:14
caution
API documentation is generated from the latest commit on the main
branch. It may be somewhat inconsistent with official releases of React Query Builder.