Material-components-web-components: mwc-switch doesn't fire change events

Created on 8 Nov 2018  路  3Comments  路  Source: material-components/material-components-web-components

The mwc-switch doesn't seem to fire any change events. When I use it like this, nothing is printed in the console.

<mwc-switch @change="${console.log}"></mwc-switch>
Bug Question

Most helpful comment

I'm having the exact same problem, click also doesn't work as expected since it fires before the checked property is updated

All 3 comments

I noted that if I use @click instead of @change, I get an event. But that doesn't feel like the right type of event to listen for on a switch.

I'm having the exact same problem, click also doesn't work as expected since it fires before the checked property is updated

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pandres95 picture pandres95  路  4Comments

mbleigh picture mbleigh  路  5Comments

mhamrah picture mhamrah  路  3Comments

dfreedm picture dfreedm  路  4Comments

AndreasGalster picture AndreasGalster  路  5Comments