Skip to content

Add support for event properties #14

@shoonia

Description

@shoonia

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions