Skip to content

Switch component can't disable #207

@mrbrianevans

Description

@mrbrianevans

What package has an issue

@svelteuidev/core

A clear and concise description of what the bug is

The Switch component disabled state does not function as expected.

When a Switch is disabled, it still allows the user to change its state.

In which browser(s) did the problem occur?

Firefox

Steps To Reproduce

Go to https://www.svelteui.org/core/switch

Check the disabled switch in the demo options.

Try change the state of the demo.


Create a svelte component:

<Switch disabled/>

Try click the switch, observe that the state changes.

Do you know how to fix the issue

No

Are you willing to participate in fixing this issue and create a pull request with the fix

No

Relevant Assets

image

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