Implement actual "prevent default"
This commit is contained in:
parent
e7e2dedf5d
commit
86a8dcfe10
|
|
@ -110,6 +110,10 @@ export class EventDelegator {
|
|||
if (handlerInfos.stopBubbling(evt.type)) {
|
||||
stopBubblingWasRequested = true;
|
||||
}
|
||||
|
||||
if (handlerInfos.preventDefault(evt.type)) {
|
||||
evt.preventDefault();
|
||||
}
|
||||
}
|
||||
|
||||
candidateElement = (eventIsNonBubbling || stopBubblingWasRequested) ? null : candidateElement.parentElement;
|
||||
|
|
|
|||
Loading…
Reference in New Issue