kartik-v / yii2-widgets

Collection of useful widgets for Yii Framework 2.0
http://demos.krajee.com/widgets
Other
558 stars 175 forks source link

Checkbox field in Switchinput does not change "Checked" property #373

Closed rommcr closed 6 years ago

rommcr commented 6 years ago

Steps to reproduce the issue

Click on switchinput widget and look at appropriate checkbox field in DOM

Expected behavior and actual behavior

When I follow those steps, I see... I see that property "checked" does not change and remains in the initial state.

I was expecting... that in the off position the property should be removed, and in "on" position - added

Environment

Browsers

Operating System

Isolating the problem

Look at http://demosbs3.krajee.com/widget-details/switchinput

image image

rommcr commented 6 years ago

.is(":checked") works, so may be I hurried opening issue.

Sorry.