Vue-material: [mdSelect] in a modal

Created on 10 May 2017  路  12Comments  路  Source: vuematerial/vue-material

Hi!

i'm trying to add a md-select in a modal. Every time i try, it appends the select-options to the body, and is behind the modal and it scrolls with the body.

How can i get it to append to the modal instead of the body?

bug

Most helpful comment

@pablohpsilva

Maybe it also should close when clicking outside the dropdown? Just an idea 馃槃

All 12 comments

Please check the 'Open Dialog' button in this pen and see if this is what you are looking for

https://codepen.io/zapping/pen/bBPyOz

@zapping The problem also appears in the codepen example you mention :)

gif

I think if you open modal there should by overflow: hidden on body?

Yeah, i think it will fix it :)

@Samuell1 I dont think it's the right solution , but it works.. 馃憤

Hmm.. quite strange, because I get mine with all scrollbars and only my select scrolls. The pen view has be resized so that there is scroll all around. Could it be my system? I am on windows and the grab is from chrome. I tried on firefox too and its the same.

selectscroll

@Samuell1 and @pablohpsilva do you guys get it similar to @Bolandish.

Hello @zapping :D
Yeap, you're right. While using windows (and AFAIK linux too) you can't scroll elements that are not on focus/active, like macOS does. The gif above shows the right behavior :)

@Bolandish gif is super weird! LOL
We'll check it out ASAP.

@pablohpsilva thank you 馃槃
Let me know if you need something from me 馃槃

@pablohpsilva

Maybe it also should close when clicking outside the dropdown? Just an idea 馃槃

This looks the same as #547

Closing this issue as our focus is on the new 1.0.0 version.

Was this page helpful?
0 / 5 - 0 ratings