Skip to content

wa-button has only onblur / onfocus #1941

@tiagogalvao

Description

@tiagogalvao

Describe the bug

When trying to use the library along with react, the lack of an onClick event handler messes a lot with the behavior of the component. Using onblur or onfocus leads to inconsistent behavior of course. Workarounds are messy to do.
Please note that I am not using WaButton (which has onClick) - because of Next, at least at the moment, its easier for me to use wa-button directly.

To Reproduce

Not needed. Just trying to use the wa-button while having an onClick action.

Additional information

Feel free to ask for.

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