Vue multiselect inside of element with scrollbar
See original GitHub issueHi, firstly thank you for a great plugin, it’s really great.
I found one issue with using vue vue-multiselect inside of elements with overflow:auto. After to expand, vue multiselect is still inside of the element with overflow auto, which is not how the standard <select> works.
Fiddle: https://jsfiddle.net/jqofkzxc/3078/
Expected behaviour: After to expand the vue-multiselect (.multiselect__content-wrapper) shouldn’t cause the .modal-body to expand.
Possible fix: This could be achieved by setting it outside of element with overflow (.modal-body in that case), and using position absolute + dynamically counted left/top css.
Why? It would make it much easier to use it in replacement to standard <select> without any hacks.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
vue-multiselect dropdown list without horizontal scrollbar
One simple solution would be to remove fit-content from .multiselect__element : .multiselect__content-wrapper /*, .multiselect__element ...
Read more >Vue-Multiselect | Vue Select Library
Probably the most complete selecting solution for Vue.js, without jQuery.
Read more >Infinite Scroll - Vue Select
Vue Select doesn't ship with first party support for infinite scroll, but it's possible to implement by hooking into the open , close...
Read more >Vue MultiSelect Component - PrimeFaces
MultiSelect is used to select multiple items from a collection.
Read more >Vue MultiSelect Component | Kendo UI for Vue - Telerik
Kendo UI for Vue MultiSelect can contain thousands of options in its popup list. With the Virtualization option enabled, the scrolling of many...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Is there any way we can overcome this issue. I want dropdown to appear above overflow (it is blocked by overflow).
I’ve used @sigma207 directive, but unfortunately I’ve got two issues with it:
position: fixed, so next elements are moved up and this is not wantedI’ve patched it to use
position: absoluteinstead offixed, and used an invisible clone to preserve the parent height:EDIT: I’ve encountered some issues with the vue-multiselect’s position in a scrollable element, which was not displayed properly. I’m now setting
position: relativeto the parent element and it’s now working well: