alxgh / yii2-jdate

Jalali date & time extension for yii2
14 stars 13 forks source link

onHide event causes looping continuously! #6

Closed mehrna closed 8 years ago

mehrna commented 9 years ago

@MrMiM TNX for your great job! By the way I think there is some problem with your great widget that I faced into them! So I will separate them with different issues. When you use onHide event in your field's configuration like this:

    $form->field($model, 'birthdate')->widget(DatePicker::classname(), [
         'clientOptions' => [
             'onHide' => 'function(){alert("Datepicker is now hidden!");}',
          ],
    ]);

then page will alert Datepicker is now hidden! contiuously without stoping! am I true?