Skip to content
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

Merged
merged 7 commits into from
Jun 1, 2022
Merged

feat(ui5-link, ui5-breadcrumbs): add modifiers keys to click event #5228

merged 7 commits into from
Jun 1, 2022

Conversation

nnaydenow
Copy link
Contributor

@nnaydenow nnaydenow commented May 17, 2022

Add modifier keys information to click event.

ilhan007
ilhan007 previously approved these changes May 26, 2022
Copy link
Member

@ilhan007 ilhan007 left a 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.

tsanislavgatev
tsanislavgatev previously approved these changes May 27, 2022
this._onclick(event);

if (this.href && !event.defaultPrevented) {
const fakeEvent = new MouseEvent("click");
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

customEvent for example

@nnaydenow nnaydenow dismissed stale reviews from tsanislavgatev and ilhan007 via 74e797e May 30, 2022 08:32
@ilhan007 ilhan007 closed this May 30, 2022
@ilhan007 ilhan007 reopened this May 30, 2022
@nnaydenow nnaydenow merged commit 379cc7b into SAP:master Jun 1, 2022
@nnaydenow
Copy link
Contributor Author

Hi @hardl,

Just to inform you that this PR is merged.

Regards,
Nayden

@hardl
Copy link
Contributor

hardl commented Jun 1, 2022

Hi @nnaydenow,

Great! Looking forward to the next release ;)

BR,
Philipp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants