Skip to content

Commit

Permalink
disabled field if extraAttributes.readonly is true
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-cattani committed Nov 10, 2021
1 parent 60c4b80 commit 6d11fa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="flex items-center">
<multiselect
v-model="value"
:disabled="creatingViaRelatedResource"
:disabled="creatingViaRelatedResource || isReadonly"
:options="options"
:placeholder="this.field.placeholder ? this.field.placeholder : this.field.indexName + ' ' + __('Select')"
:selectLabel="__('Press enter to select')"
Expand Down

0 comments on commit 6d11fa0

Please sign in to comment.