preventDefault

fun preventDefault(): PreventDefault

PreventDefault is an UIEventResponse which requests the prevention of any default actions for the given event.

Return this object if you acted on an event and you don't want any default actions to take place (hover effects on components for example).

Sources

(source)
Link copied to clipboard