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

fix(vue): update output target and properly emit events #30227

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

christian-bromann
Copy link
Member

@christian-bromann christian-bromann commented Mar 3, 2025

Issue number: resolves #30206 resolves #30178 resolves #30177 resolves #30175 resolves #30170


What is the current behavior?

There have been plenty of issues reported in regards to Vue components failing to propagate events. It seems like when we updated the Vue output target and started to use the provided runtime code from the output target, we have changed the way how event names are computed. Ionic has used a custom wrapper for handling events that would kebab case event names. That is no longer needed and removing it fixes observed issues.

Reproduction case working: https://stackblitz.com/edit/vj18czas-wdhzxjom?file=package.json

What is the new behavior?

We have received a fix for this in stenciljs/output-targets#617 which I hope will resolve this issue by updating the dependency.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Dev build: 8.4.4-dev.11741193800.14916f6f

Copy link

vercel bot commented Mar 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 5, 2025 4:45pm

@github-actions github-actions bot added the package: core @ionic/core package label Mar 3, 2025
@christian-bromann christian-bromann marked this pull request as draft March 3, 2025 19:49
@christian-bromann
Copy link
Member Author

Verified fix for reproduction case referenced in: #30170
https://stackblitz.com/edit/vj18czas-ixc2u6au?file=package.json

@christian-bromann
Copy link
Member Author

This does not resolve #30179

@christian-bromann
Copy link
Member Author

Verified fix for reproduction case referenced in: #30206
https://stackblitz.com/~/github.com/ozgurg/ionic-8.4.3-event-issue-reproduce

@brandyscarney brandyscarney changed the title chore(core): update Vue output target fix(vue): update output target and properly emit events Mar 5, 2025
@brandyscarney
Copy link
Member

Copy link
Member

@ShaneK ShaneK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've also tested and verified what Brandy found on 8.4.4-dev.11741193800.14916f6f. Good work! 🚀

@andrei0x309
Copy link

Can confirm this issue in 8.4.3 with @ionInput on ion-searchbar component, downgrading to 8.4.2 until 8.4.4 is released that fixes this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package package: vue @ionic/vue package
Projects
None yet
4 participants