We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3481966 commit 462cd8eCopy full SHA for 462cd8e
src/SelectTree.php
@@ -37,7 +37,7 @@ class SelectTree extends Field implements HasAffixActions
37
38
protected bool $independent = true;
39
40
- protected string $customKey = 'id';
+ protected string $customKey = null;
41
42
protected string $titleAttribute;
43
@@ -360,7 +360,7 @@ public function getIndependent(): bool
360
361
public function getCustomKey(): string
362
{
363
- return $this->evaluate($this->customKey);
+ return $this->customKey ? $this->evaluate($this->customKey) : $this->getKey();
364
}
365
366
public function getWithCount(): bool
0 commit comments