Vue-multiselect: Options become invisible when rendered inside a parent with overflow scroll or hidden

Created on 12 Jul 2019  路  3Comments  路  Source: shentao/vue-multiselect

Reproduction Link

https://codesandbox.io/s/vuemultiselect-issue-txjr4

When vue-multiselect component is rendered inside a parent or ancestor element with overflow property set to scroll or hidden and when dropdown options are rendered above position then part of the options become invisible.

I've actually figured out where the problem is but haven't had a chance to prepare a pull-request. The problem is that vue-multiselect is making calculations based on the position of it on the screen (via getBoundingClientRect). Instead it should find the first ancestor with overflow property that is not visible and use that as reference.

Most helpful comment

Has a PR been opened for this? We are experiencing this as all.

All 3 comments

Have you made a fix for this issue, if so, can you please share?

Has a PR been opened for this? We are experiencing this as all.

Bump

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexhyriavets picture alexhyriavets  路  3Comments

volkanciloglu picture volkanciloglu  路  3Comments

yaakovp picture yaakovp  路  3Comments

Uninen picture Uninen  路  4Comments

xereda picture xereda  路  4Comments