Skip to content

Commit

Permalink
Merge pull request #1598 from edwinhuish/fix_autocomplete_group
Browse files Browse the repository at this point in the history
修复 group 无效的问题
  • Loading branch information
jqhph authored Dec 12, 2021
2 parents 11a81d3 + 67976d0 commit bcf0d1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Form/Field/Autocomplete.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,15 @@ public function render()
{
$this->formatGroupOptions();

$this->configs([
'groupBy' => $this->groupBy,
]);

$this->addVariables([
'options' => json_encode($this->options, \JSON_UNESCAPED_UNICODE),
'configs' => JavaScript::format($this->configs),
]);

$this->configs([
'groupBy' => $this->groupBy,
]);

return parent::render();
}

Expand Down

0 comments on commit bcf0d1f

Please sign in to comment.