Implement actual "prevent default"

This commit is contained in:
Steve Sanderson 2019-09-26 13:43:21 +01:00 committed by Artak
parent e7e2dedf5d
commit 86a8dcfe10
1 changed files with 4 additions and 0 deletions

View File

@ -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;