TextField and AbstractNumberField have setAutoselect, but several others, like DatePicker, TimePicker and ComboBox only have the client-side attribute
Expected outcome
All client-side components with "autoselect" should have a server-side setAutoselect
Also, there should be an HasAutoselect interface that all should implement (like HasAutocomplete, HasAutocapitalize, etc) so that I can loop over my components and do
if(component instanceof HasAutoSelect) { ((HasAutoSelect)component).setAutoSelect(true); }
Minimal reproducible example
// This compiles:
TextField textField = new TextField("TextField");
textField.setAutoselect(true);
IntegerField integerField = new IntegerField("IntegerField");
integerField.setAutoselect(true);
// This should work, but doesn't compile
DatePicker datePicker = new DatePicker("DatePicker");
datePicker.setAutoselect(true);
// This workaround works, so the client-side support is there
datePicker.getElement().setAttribute("autoselect", "true");
Description
TextField and AbstractNumberField have setAutoselect, but several others, like DatePicker, TimePicker and ComboBox only have the client-side attribute
Expected outcome
All client-side components with "autoselect" should have a server-side setAutoselect
Also, there should be an HasAutoselect interface that all should implement (like HasAutocomplete, HasAutocapitalize, etc) so that I can loop over my components and do
if(component instanceof HasAutoSelect) { ((HasAutoSelect)component).setAutoSelect(true); }
Minimal reproducible example
Steps to reproduce
N/A
Environment
Vaadin - 23.1.0
Browsers
Issue is not browser related