Choices: Can we set the dropdown to body?

Created on 5 Feb 2017  路  10Comments  路  Source: Choices-js/Choices

Can we set the dropdown to body?

So if used in a small dialog that scrolls it wont be hidden
Or a container that have overflow set to hidden.

question

Most helpful comment

@jshjohnson @vegarringdal I'll +1 to this.

This is important when it comes to card based layouts. I am facing an issue where the UI elements are in card format with horizontal scroll, border radius, etc for which we had to add overflow: hidden

In doing so, the Choices dropdown gets hidden behind the card.

All 10 comments

Anything new on this one ?

Hey @vegarringdal,

It's not something I had planned on doing as the structure of the HTML needs to be very strict for Choices to work. I'll consider it if enough people ask for it and re-open this issue.

Thanks

ok, well if you get bored then you have challenge waiting :-)
Wanted to try and use it inside a table/grid, but didnt go well when popup got hidden by the overflow

Lets hope this is something other need to then :-)

@jshjohnson @vegarringdal I'll +1 to this.

This is important when it comes to card based layouts. I am facing an issue where the UI elements are in card format with horizontal scroll, border radius, etc for which we had to add overflow: hidden

In doing so, the Choices dropdown gets hidden behind the card.

+1

+1

馃憤

+1

+1
My solution was to set position: fixed; at the .choices__list--dropdown element and generating the top value dynamically depending on the position of the select.

+1
My solution was to set position: fixed; at the .choices__list--dropdown element and generating the top value dynamically depending on the position of the select.

can you share code how you did this? I need to do the same for my solutions
Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NetanelBasal picture NetanelBasal  路  5Comments

Igloczek picture Igloczek  路  3Comments

ckotzbauer picture ckotzbauer  路  5Comments

michaelongithub picture michaelongithub  路  4Comments

ckotzbauer picture ckotzbauer  路  5Comments