Skip to content

$().button('toggle') not working in 4.4.1 #30077

@dkwebtec

Description

@dkwebtec

$().button('toggle')

not working in 4.4.1, but working fine in 4.3.1

        <div class="btn-group-toggle" data-toggle="buttons">
            <label id="my-switch" class="btn btn-lg btn-light font-weight-bold ml-2 text-nowrap">
            <input type="checkbox" autocomplete="off" value="1"><span class="check">✓</span> <i class="far fa-clipboard"></i> <span class="d-none d-lg-inline">My</span>
            </label>
        </div>

$("#my-switch").button('toggle');

4.4.1 https://codepen.io/DK568/pen/MWYxWMO

4.3.1 https://codepen.io/DK568/pen/ExaMaxd

the difference is that button is not checked by jquery

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions