Skip to content

Commit

Permalink
js syntax error,default value not define
Browse files Browse the repository at this point in the history
  • Loading branch information
liangguifeng committed Nov 11, 2020
1 parent 7a405d4 commit c1ea8ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/Field/CanCascadeFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ protected function addCascadeScript()
var cascade_groups = {$cascadeGroups};
cascade_groups.forEach(function (event) {
var default_value = {$this->getDefault()} + '';
var default_value = '{$this->getDefault()}' + '';
var class_name = event.class;
if(default_value == event.value) {
$('.'+class_name+'').removeClass('hide');
Expand Down

0 comments on commit c1ea8ba

Please sign in to comment.