-
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
[select] Add public API to set no-vertical-overlap
on the overlay
#5101
Comments
Thanks for the issue. Moved to web components as it's where it belongs. We might want to add new API for this. |
"no-vertical-overlap"
on the overlay
"no-vertical-overlap"
on the overlayno-vertical-overlap
on the overlay
Is it right that the |
@enver-haase I am not using this workaround anymore. I now have a client-side subclass of
|
Add a property to `vaadin-select` called `noVerticalOverlap` which forwards its value to the same property present in the Overlay, to allow users to configure whether they want the overlay to overlap the input container (default) or not. Part of #5101
Add a property to `vaadin-select` called `noVerticalOverlap` which forwards its value to the same property present in the Overlay, to allow users to configure whether they want the overlay to overlap the input container (default) or not. Part of #5101
Has been resolved with vaadin/flow-components#6379 |
Describe your motivation
I recently got the feedback that some users unintentionally change the value of the
Select
component because the overlay opens above the component and the first value is directly under the cursor:So a double click in this case would set the value from "Price: low to high" to "Most recent first".
Describe the solution you'd like
After getting this feedback I checked different select components, including chromes native select and material design select box.
Most of them seem to place the overlay below the component, a double click would simply close the overlay without changing the value.
Another solution would be to change the order of the items, so that the selected value is always the top one:
Describe alternatives you've considered
The current workaround as suggested by Vaadin expert chat is to create a subclass of
Select
and callgetElement().executeJs( "this._overlayElement.setAttribute('no-vertical-overlap',true);");
Additional context
No response
The text was updated successfully, but these errors were encountered: