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

fix(ui5-time-picker): display value state message in popover's header correctly on mobile #10795

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

hinzzx
Copy link
Contributor

@hinzzx hinzzx commented Feb 7, 2025

We encountered an issue on mobile devices where opening the ui5-time-picker's time selection popover by clicking the input field (instead of the icon) results in an empty value state message in the header.

The reason behind this was that there was a racing condition between the ResponsivePopover and the Popover in the template, where the first one, 'steals' the slot=valueStateMessage.
The first component to access the valueStateMessage slot claims it, and since a given light DOM node can only be assigned to one slot at a time, the other component ends up without the value state message.

Before

2025-02-07_14-22-56

After

2025-02-07_14-21-02

@hinzzx hinzzx requested a review from vladitasev February 7, 2025 12:24
packages/main/src/TimePicker.ts Show resolved Hide resolved
packages/main/src/TimePicker.ts Outdated Show resolved Hide resolved
packages/main/src/TimePicker.ts Outdated Show resolved Hide resolved
packages/main/src/TimePickerTemplate.tsx Outdated Show resolved Hide resolved
packages/main/src/TimePicker.ts Outdated Show resolved Hide resolved
@hinzzx hinzzx marked this pull request as ready for review February 11, 2025 13:12
@vladitasev vladitasev merged commit accc3d6 into main Feb 12, 2025
12 checks passed
@vladitasev vladitasev deleted the tp-vsm-popover-fix branch February 12, 2025 11:17
@ui5-webcomponents-bot
Copy link
Collaborator

🎉 This PR is included in version v2.8.0-rc.1 🎉

The release is available on v2.8.0-rc.1

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants