-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Issue #30594 - added preventDefault if EventListner is added for a tag #30628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 2.4-develop
Are you sure you want to change the base?
Changes from 1 commit
8449a05
7d3ea41
e30bb6f
ac5f953
6fd02b3
15f4850
93654ab
3499bd8
f542a4f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,8 +119,10 @@ function {$listenerFunction} () { | |
targetElement = event.target; | ||
} | ||
{$listenerFunction}.apply(targetElement); | ||
} | ||
event.preventDefault(); | ||
} | ||
} | ||
|
||
script; | ||
|
||
return $this->renderTag('script', ['type' => 'text/javascript'], $script, false); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hard-code logic check nodename is not good way. IMO There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mrtuvn the issue is resolved by just adding onclick if condition but I have put a double-check for the anchor tag. |
||
|
Uh oh!
There was an error while loading. Please reload this page.