Skip to content

@change event is triggered when the component loads #1

@sanifhimani

Description

@sanifhimani

Hi @adamberecz. Thanks for you amazing work here!
I've added the toggle in my design which has tabs to change the views. When the view that has the toggle loads, it triggers the change event. I'm not sure if it is supposed to do this, or only trigger when it's changed and not rendered for the first time. I've attached some screenshots to explain better.

Image for First tab with nothing in the console
Screen Shot 2021-04-07 at 10 43 19 PM

Image of setting tab with the change event triggered without clicking the toggle.
Screen Shot 2021-04-07 at 10 44 49 PM

Is there anything that needs to be done or does it work this way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions