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

Components inside default slot of QImg not working correctly #17426

Closed
Dtsiantaris opened this issue Aug 8, 2024 · 2 comments
Closed

Components inside default slot of QImg not working correctly #17426

Dtsiantaris opened this issue Aug 8, 2024 · 2 comments
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues

Comments

@Dtsiantaris
Copy link
Contributor

Dtsiantaris commented Aug 8, 2024

What happened?

While using the default slot inside a q-img component, things inside the slot itself seem to be broken. Styles sometimes break and events are not emitted correctly.

Behavior below can be reproduced with other elements too(i.e. a a tag).

What did you expect to happen?

The components/valid HTML inside the default slot to render and behave correctly

Reproduction URL

https://codepen.io/dtsiantaris/pen/abgyYVP

How to reproduce?

  1. Go to the provided link
  2. Click on the Test Btn inside the image
  3. You will notice that the event is never fired and the value of the testRef never changes.

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Components (quasar)

Platforms/Browsers

Firefox, Chrome, Microsoft Edge

Quasar info output

No response

Relevant log output

No response

Additional context

No response

@github-actions github-actions bot added area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite labels Aug 8, 2024
@stefanvanherwijnen
Copy link
Contributor

Wrap the q-btn in a div:
https://codepen.io/stefanvh/pen/BagdgPQ

Also, your button wasn't linked to testClick 😁 .

@rstoenescu
Copy link
Member

Cannot reproduce. Button works correctly. Even if it didn't, it wouldn't have to do with Quasar but with Vue itself.

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/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

No branches or pull requests

3 participants