-
Notifications
You must be signed in to change notification settings - Fork 273
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
feat(ui5-link, ui5-breadcrumbs): add modifiers keys to click event #5228
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are 3 more components, using the ui5-link inside their templates and we have to change click to ui5-click, but this can be done afterwards in a follow up PR.
packages/main/src/Link.js
Outdated
this._onclick(event); | ||
|
||
if (this.href && !event.defaultPrevented) { | ||
const fakeEvent = new MouseEvent("click"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is fakeEvent the best name for this variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you have any suggestion, but we create event that will be dispatched through link to simulate click from the link to achieve the default behaviour of link click.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
customEvent for example
Hi @hardl, Just to inform you that this PR is merged. Regards, |
Hi @nnaydenow, Great! Looking forward to the next release ;) BR, |
Add modifier keys information to click event.