Skip to content

Commit

Permalink
fix: BelongsToMany
Browse files Browse the repository at this point in the history
Tree mode checkbox id
  • Loading branch information
lee-to committed Dec 13, 2024
1 parent d37501c commit 05d6b89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Laravel/src/Traits/Fields/HasTreeMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ protected function buildTree(Collection $data, int|string $parentKey = 0, int $o
$this->setAttribute('name', $this->getNameAttribute((string) $item->getKey()));

$element = Checkbox::make($label)
->formName($this->getFormName())
->simpleMode()
->customAttributes($this->getAttributes()->jsonSerialize())
->setValue($item->getKey());
Expand Down

0 comments on commit 05d6b89

Please sign in to comment.