Skip to content

Commit

Permalink
Add ability to clear field
Browse files Browse the repository at this point in the history
  • Loading branch information
bukin committed Nov 9, 2019
1 parent b392a3a commit 7d2e197
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'data-placeholder' => $attributes['field']['placeholder'],
'style' => 'width: 100%',
'data-source' => route('back.classifiers.entries.getSuggestions', ['group' => $attributes['field']['group']]),
'data-allow-clear' => $attributes['field']['data-allow-clear'] ?? 'false',
], ((! isset($attributes['field']['multiple'])) || isset($attributes['field']['multiple']) && $attributes['field']['multiple']) ? ['multiple' => 'multiple'] : [],
(isset($attributes['field']['readonly']) && $attributes['field']['readonly']) ? ['readonly' => 'readonly'] : []
),
Expand Down

0 comments on commit 7d2e197

Please sign in to comment.