-
Notifications
You must be signed in to change notification settings - Fork 15
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 is not visible because attached behind all app elements #8
Comments
Fix is
|
@shershen08 .stf-select__options.stf-select-options {z-index: 9999;} maybe it is enough? And you can add it as custom css of your site without changing the library, cause your solution is good but it is not all time suitable. |
CSS part of the solution - you are right one can add in the application styles. |
@shershen08 ok thank. I am looking forward your demo. |
here's a repo with a problem demo - https://github.com/shershen08/demo-stf-select-bug |
@shershen08 Thank you for demo, but z-index works in your case and document.body.insertBefore(this.__selectOptionsWrapEl, document.body.childNodes[1]) does not work. Maybe css is enough in your case. |
Hmm, strange, I'll check one again asap |
@shershen08 What is your browser? Is it all browsers or only one? |
it's about Chrome/FF |
I add style and all worked to https://github.com/shershen08/demo-stf-select-bug .stf-select_opened .stf-select__options { |
@shershen08 check please |
Yes, it works. It's was my setup issue I guess. |
Due to this https://github.com/stfalcon-studio/stf-vue-select/blob/master/src/components/stf-select/StfSelect.vue#L89 the wrapper for the dropdown in attached to the DOM as the last element and may be not visible , for example when the some other popup is used.
Maybe that could be better either to attach in front or have an option where to attach it (simmilar to #5 )
The text was updated successfully, but these errors were encountered: