Skip to content

[Button] should toggle with state function  #6323

@jcheron

Description

@jcheron

It seems that toggle button is broken since 2.3.1 version,
all was good for toggle buttons in 2.3.0

Steps

<a class="ui toggle button">Toggle</a>
<script>$(".ui.button.toggle").state();</script>

Expected Result

a toggle button...

Actual Result

Uncaught TypeError: $(...).state is not a function
    at HTMLDocument.<anonymous>

Version

Semantic ui 2.3.1 (cdnjs)
jQuery 3.3.1

Testcase

https://jsfiddle.net/jcheron/n90gcwjz/2/

Note

Version 2.3.1 available at https://semantic-ui.com/dist/semantic.min.js works, while cdn (cdnjs or cdn.jsdelivr.net) does not work.

The files are different!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions