Open TatuLund opened 2 months ago
Note: we should also ensure that TimePicker
and MultiSelectComboBox
work consistently. Currently, these components do not open overlay on label click, unlike ComboBox
and DatePicker
(which have that handled by _onHostClick
).
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
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