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!
It seems that toggle button is broken since 2.3.1 version,
all was good for toggle buttons in 2.3.0
Steps
Expected Result
a toggle button...
Actual Result
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!