Skip to main content

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

ParameterType
methodRQBMouseEventHandler

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.