Skip to content

Commit 694d93c

Browse files
authored
Update CanCascadeFields.php
某些特殊的value值比如:App\Models\User将会导致js元素选择器无法命中该dom元素
1 parent 0ba9c91 commit 694d93c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Form/Field/CanCascadeFields.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected function getCascadeClass($value)
9292
$value = implode('-', $value);
9393
}
9494

95-
return sprintf('cascade-%s-%s', $this->getElementClassString(), $value);
95+
return sprintf('cascade-%s-%s', $this->getElementClassString(), bin2hex($value));
9696
}
9797

9898
/**

0 commit comments

Comments
 (0)