Closed antonkomarev closed 10 years ago
This is fixed via this commit and latest release v1.2.0 in yii2-krajee-base.
Upgrade your packages via composer and retry.
Fix is not helped :( Do I need to provide any additional info?
Not sure if your packages are updated OR you are doing it the right way.
Check the demos page and navigate to the basic usage section. The first and third examples use an initial value (the first example with model and the third without a model).
Here is is my composer require section:
"kartik-v/yii2-detail-view": "dev-master",
"kartik-v/yii2-widgets": "*"
I've checked files and can see that files are updated with your fix. Could it happen if I'm using this widget in DetailView? It is working when I'm using this widget standalone.
Hello! Thank you for the very useful widget.
I'm trying to use it and got an issue. Widget always loading in YES state.
If attribute
value = 0
switch is loading in YES position. If you want to update attribute tovalue = 1
you must click on switch (it will be changed to NO position) and then click on it again (it will be changed back to YES position). Only after that new value will be assigned.// Note: I've looked the code and haven't found any
checked
state checks in it. It looks like such functionality exists in similar widget: https://github.com/2amigos/yii2-switch-widgetI've tried
'pluginOptions' => [ 'state' => false ]
but it isn't helping too.And here is my code from DetailView widget: