Skip to content
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

QSelect with options-dense, options-cover and #before-options slot : The menu jumps up when displayed first time #17749

Open
xlaussel opened this issue Jan 11, 2025 · 0 comments
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/vite-plugin Bugs related to Vite usage with Quasar kind/bug 🐞 Qv2 🔝 Quasar v2 issues

Comments

@xlaussel
Copy link

xlaussel commented Jan 11, 2025

What happened?

I have a QSelect with options-cover, options-dense and a #before-options slot.
When the menu is displayed for the first time it jumps some pixels: It is displayed then it moves, it looks like the position is calculated in 2 times.

Note that after the first display, if the menu is displayed again there is no problem: I is displayed immediatly at the right place. It looks like the position is calculated at the first display and then saved for after.

In the reproduction URL the menu moves up but in my more complicated case the menu also moves left.

If I remove the #before-options slot or the options-dense prop there is no problem.

What did you expect to happen?

The menu should been displayed at the right place immediatly.

Reproduction URL

https://jsfiddle.net/y3q267rd/10/

How to reproduce?

  1. Go to the reproduction link
  2. click on the QSelect
  3. Look at the menu jumping!
  4. The menu jumps only at the first display so press the yellow "Run" button at the top in order to reinitialize and click again on the QSelect to see the menu jumping again!

Flavour

Vite Plugin (@quasar/vite-plugin)

Areas

Components (quasar)

Platforms/Browsers

Chrome

Quasar info output

No response

Relevant log output

No response

Additional context

No response

@xlaussel xlaussel added kind/bug 🐞 Qv2 🔝 Quasar v2 issues labels Jan 11, 2025
@github-actions github-actions bot added area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/vite-plugin Bugs related to Vite usage with Quasar labels Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/vite-plugin Bugs related to Vite usage with Quasar kind/bug 🐞 Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

No branches or pull requests

1 participant