Skip to content

fix(ui5-tabcontainer): clicking a tab now always works #1567

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

Merged
merged 1 commit into from
Apr 29, 2020

Conversation

vladitasev
Copy link
Contributor

With the standard ui5-tab the click, keydown and keyup events are always fired with the tab itself as the event target due to the specific markup we use, but when extending the tab and providing your own implementation, the event target might be different.

Therefore, the TabContainer first needs to determine the tab (which could be in the parent chain) and can only then proceed with the normal eventing logic.

@vladitasev vladitasev requested a review from ilhan007 April 29, 2020 11:20
@vladitasev vladitasev merged commit dc60609 into master Apr 29, 2020
@vladitasev vladitasev deleted the tab-click-fix branch April 29, 2020 11:41
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.

2 participants