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

Switch onchange errors #2882

Open
MrVauxs opened this issue Oct 19, 2024 · 2 comments
Open

Switch onchange errors #2882

MrVauxs opened this issue Oct 19, 2024 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed
Milestone

Comments

@MrVauxs
Copy link

MrVauxs commented Oct 19, 2024

Current Behavior

Documentation states that Switch can be used with onchange property. However, currently there are two issues regarding it:

  1. The property does not exist in the elements types.
  2. Adding the property causes a slew of the following warnings:
    image

The function instead of running returns the same warning whenever the switch state changes. on:change does not throw a type error, but does not do anything, not even the aforementioned warning

Expected Behavior

onchange working.

Steps To Reproduce

Copy paste what the documentation says in the Lightswitch example.

Link to Reproduction / Stackblitz

https://github.com/MrVauxs/skeletonrepro

More Information

Code_CcSGg3Kz1L
chrome_NGdFYeAQ5r

@MrVauxs MrVauxs added the bug Something isn't working label Oct 19, 2024
@endigo9740 endigo9740 added this to the v3.0 (Next) milestone Oct 20, 2024
@endigo9740
Copy link
Contributor

See also: #2851

@endigo9740 endigo9740 added the help wanted Extra attention is needed label Nov 12, 2024
@phamduylong
Copy link
Contributor

I'll investigate this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants