🚧 under construction -> cancellable events
browser ⟩ event ⟩ dispatch
return value of EventTargetarrow-up-right ⟩ .dispatchEvent(event)arrow-up-right
false
if event is cancelable, and
event
at least one of the event's handlers called .preventDefault()arrow-up-right.
true, otherwise.
the return value of an event handler is related to canceling the default actions.
hide or not to hide?
EventTargetarrow-up-right ⟩ .dispatchEvent()arrow-up-right
Event ⟩ .preventDefault()arrow-up-right
Last updated 3 years ago