-
Notifications
You must be signed in to change notification settings - Fork 83
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
Dropdown fields behave inconsistenly on label click in terms of overlay opening / closing #7812
Comments
Note: we should also ensure that |
Here is another observation. If I click on the DatePicker's label while the dropdown is open, focus goes to an unknown place, and the dropdown remains open, which is weird. https://vaadin.com/docs/latest/example?path=component/datepicker/date-picker-basic.ts |
Currently the components work differently due to how they are implemented:
I'm not 100% sure what the correct behavior should be (whether label should work as in the select or date-picker). Regarding blur events, that's a slightly separate problem that was already fixed by preventing |
Actually, since the original issue is about focus / blur events and that was fixed, I'll close it and create a new one instead. |
Description
We have multiple field components which have dropdown popup. These differ in focus / blur behavior when clicking the label while the dropdown is open.
In case of ComboBox and MultiSelectComboBox when the dropdown is open and one clicks the label of the component, the blur event is fired and focus event is fired after that.
In case of Select and DatePicker clicking label will not emit blur event and hence no focus event is fired either.
Expected outcome
I would expect the behavior of these components to be consistent. I.e. they would fire focus and blur events in similar fashion.
Furthermore I think Select and DatePicker behavior is more correct.
Minimal reproducible example
Steps to reproduce
Environment
Vaadin version(s): Vaadin 24.4.11
Browsers
No response
The text was updated successfully, but these errors were encountered: