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

Add support for event properties #14

Open
shoonia opened this issue Sep 25, 2019 · 0 comments
Open

Add support for event properties #14

shoonia opened this issue Sep 25, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@shoonia
Copy link

shoonia commented Sep 25, 2019

When I use event.target on handler action, the types don't find the properties

for example:

$w('#myCheckbox').onChange((event) => {
    if (event.target.checked) { // <<< here
        // do ...
    } else {
        // do ...
    }
});

I see an ts error

Property 'checked' does not exist on type 'Element'.ts(2339)

Thanks!

@agankarin agankarin added the bug Something isn't working label Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants