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-list): preventable item-click event #4448

Merged

Conversation

plamenivanov91
Copy link
Contributor

@plamenivanov91 plamenivanov91 commented Dec 7, 2021

In this change we introduce the preventable behaviour of the item-click
event in the List component.

Thank you for your contribution! 👏

To get it merged faster, kindly review the checklist below:

Pull Request Checklist

In this change we introduce the preventable behaviour of the item-click
event in the List component.
@plamenivanov91 plamenivanov91 linked an issue Dec 7, 2021 that may be closed by this pull request
4 tasks
@nnaydenow
Copy link
Contributor

nnaydenow commented Dec 8, 2021

Keep in mind: #1618 . Let's investigate it.

additionally the press and click events are now fired before selection
@nnaydenow
Copy link
Contributor

Looks good to me. Currently ui5-item-press is used only internally and it shouldn't be part of the prevention.

@ilhan007
Copy link
Member

ilhan007 commented Dec 8, 2021

Could you also add Fixes: link of the issue in the commit message. It can be edited in the Github UI, but later when you press the Squash and merge button, you need to fix it and make sure Fixes: link of the issue is added.

@plamenivanov91 plamenivanov91 merged commit 12d3e8a into SAP:master Dec 10, 2021
@plamenivanov91
Copy link
Contributor Author

Hi @ilhan007 ,

Sorry but I saw your comment after I merged it. It seems like the issue has closed automatically since it's linked with the pull request.

eshpak pushed a commit to eshpak/ui5-webcomponents that referenced this pull request Jan 9, 2022
* feat(ui5-list): preventable item-click event

In this change we introduce the preventable behaviour of the item-click
event in the List component.

* fixed name of test

* fixed failing tests

additionally the press and click events are now fired before selection
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.

[SF] List - allow user to confirm before changing selected item
3 participants