mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
fix(core): Fix shouldPreventDefaultBeforeDispatching bug (#56188)
When I copied this over in caedd10597
the parentheses moved around the A tag check and the CLICK type check,
instead of around the CLICK and CLICKMOD check.
PR Close #56188
This commit is contained in:
parent
616cdef474
commit
2a440e1064
1 changed files with 3 additions and 2 deletions
|
|
@ -133,8 +133,9 @@ function shouldPreventDefaultBeforeDispatching(
|
|||
// a child of an anchor that has a jsaction attached. For that reason, we
|
||||
// need to check the actionElement rather than the targetElement.
|
||||
return (
|
||||
(actionElement.tagName === 'A' && eventInfoWrapper.getEventType() === EventType.CLICK) ||
|
||||
eventInfoWrapper.getEventType() === EventType.CLICKMOD
|
||||
actionElement.tagName === 'A' &&
|
||||
(eventInfoWrapper.getEventType() === EventType.CLICK ||
|
||||
eventInfoWrapper.getEventType() === EventType.CLICKMOD)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue