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

[LionSwitch] modelValue synced after @checked-changed event is fired #2321

Open
NioniosSpeed opened this issue Jul 25, 2024 · 0 comments
Open

Comments

@NioniosSpeed
Copy link
Contributor

NioniosSpeed commented Jul 25, 2024

Expected behavior

A "toggle-right" click on the LionSwitch should throw a @checked-changed event with modelValue.checked=true
A "toggle-left" click on the LionSwitch should throw a @checked-changed event with modelValue.checked=false

Actual Behavior

The exact opposite happens. Checked property seems reverted.

How to reproduce:
https://stackblitz.com/edit/vitejs-vite-1nmimv?file=src%2Fmy-element.js

Additional context

@tlouisse suggests that modelValue is synced after @checked-changed event is fired

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant