-
-
Notifications
You must be signed in to change notification settings - Fork 996
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
Mismatching z-index in Multiselect.vue and vue-multiselect.min.css #850
Comments
This is actually a pretty decent behaviour. You can control whether the element should be above something else or not. And it can be easily changed like here: https://jsfiddle.net/shentao/r912znhf/. Also, the CSS class you pointed at, is related to the dropdown list and not the component itself. |
I don't really get the label "invalid". Please have a look at this: Yes, it can be solved by doing some manual css overwriting, but the problem is still there in the dist version... I say: bug. |
Indeed, I probably named my issue wrong. My main concern was inconsistency between production and development code. |
@jbruni It does not differ. Pay more attention to the class names. |
@shentao could you elaborate? https://github.com/shentao/vue-multiselect/blob/master/src/Multiselect.vue#L446-L448 .multiselect--active {
z-index: 50;
} https://github.com/shentao/vue-multiselect/blob/master/dist/vue-multiselect.min.css#L1 .multiselect--active{z-index:1} https://github.com/shentao/vue-multiselect/blob/master/src/Multiselect.vue#L628-L641 .multiselect__content-wrapper {
position: absolute;
display: block;
background: #fff;
width: 100%;
max-height: 240px;
overflow: auto;
border: 1px solid #e8e8e8;
border-top: none;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
z-index: 50;
-webkit-overflow-scrolling: touch;
} https://github.com/shentao/vue-multiselect/blob/master/dist/vue-multiselect.min.css#L1 .multiselect__content-wrapper{position:absolute;display:block;background:#fff;width:100%;max-height:240px;overflow:auto;border:1px solid #e8e8e8;border-top:none;border-bottom-left-radius:5px;border-bottom-right-radius:5px;z-index:1;-webkit-overflow-scrolling:touch} I don't see a difference in class name, I do however see a difference in production and master branch code. But perhaps i'm missing something? |
Oh noes. So sorry about my previous replies – turns out I was the one to misread the code... I really should have paid more attention to it. I guess I wrongly assumed that the build step wouldn’t touch the |
Much appreciated! (and glad i'm nog losing my mind :)) |
Thanks for the fixes @shentao ! <3 Can the fixes be released soon? I prefer to fetch the latest code from the new tag like Thank you! |
Thanks it worked!! 👍 |
Reproduction Link
z-index: 50 in vue sourcefile:
https://github.com/shentao/vue-multiselect/blob/master/src/Multiselect.vue#L639
z-index: 1 in minimized css:
https://github.com/shentao/vue-multiselect/blob/master/dist/vue-multiselect.min.css
Visualization
https://jsfiddle.net/jqofkzxc/6422/
Steps to reproduce
Open dropdown
Expected behaviour
red label is under the dropdown
Actual behaviour
red label is above the dropdown
The text was updated successfully, but these errors were encountered: