From c6b781d3d40b7179f9f585221060eee6e0d111d3 Mon Sep 17 00:00:00 2001 From: coder_wen Date: Wed, 23 Oct 2024 11:13:50 +0800 Subject: [PATCH] fix: when event operator is not equal, default value not matched --- src/Form/Field/CanCascadeFields.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/Field/CanCascadeFields.php b/src/Form/Field/CanCascadeFields.php index b4d3deecbb..265024dc6a 100644 --- a/src/Form/Field/CanCascadeFields.php +++ b/src/Form/Field/CanCascadeFields.php @@ -214,7 +214,7 @@ protected function addCascadeScript() cascade_groups.forEach(function (event) { var default_value = '{$this->getValueByJs()}' + ''; var class_name = event.class; - if(default_value == event.value) { + if(operator_table[event.operator](default_value, event.value)) { $('.'+class_name+'').removeClass('hide'); } });