All Components
Components

PreventableEvent

An event whose default action can be prevented by calling the preventDefault method.

Methods

isDefaultPrevented

Returns true if the event was prevented by any of its subscribers.

Returns

boolean true if the default action has been prevented, false otherwise

preventDefault

Prevents the default action for a specified event.

In this way, the source component suppresses the built-in behavior that follows the event.

In this article