fix: clientOptions=false skips registerJs

This commit is contained in:
Julian Rutten 2022-03-09 14:04:26 +01:00
parent 5720ea1dc0
commit a8704c58f8

View File

@ -76,9 +76,11 @@ trait BootstrapWidgetTrait
$id = $this->options['id'];
if($this->clientOptions !== false){
$options = empty($this->clientOptions) ? '' : Json::htmlEncode($this->clientOptions);
$js = "jQuery('#$id').$name($options);";
$view->registerJs($js);
}
$this->registerClientEvents();
}