Skip to content

Could isChecked prop be used as state of Switch button #6

@tahv0

Description

@tahv0

Current implementation changes state of Switch Button in css styles.

This makes impossible to change its state programmatically. It could be nice if this Component could use isChecked-prop so its state would not change every time it's toggled.

My problem came up when I made "are u sure" confirm before making API call, and if user cancels then SwitchButton's state changes anyways because its state can not be controlled programmatically.

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