Skip to main content

useStopEventPropagation()

useStopEventPropagation(method: RQBMouseEventHandler): RQBMouseEventHandler

Defined in: packages/react-querybuilder/src/hooks/useStopEventPropagation.ts:16

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​

ParameterType
methodRQBMouseEventHandler

Returns​

RQBMouseEventHandler


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.