Skip to content

Commit

Permalink
Fix create: false config on terms fieldtype select mode. Closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite committed Oct 1, 2020
1 parent 5381b2e commit cc818f0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion resources/js/components/inputs/relationship/SelectField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
:create-option="(value) => ({ title: value, id: value })"
:placeholder="config.placeholder || __('Choose...')"
:searchable="true"
:taggable="taggable"
:taggable="isTaggable"
:value="items"
@input="input"
@search="search"
Expand Down Expand Up @@ -67,6 +67,14 @@ export default {
}
},
computed: {
isTaggable() {
if (data_get(this.config, 'create') === false) return false;
return this.taggable;
},
},
created() {
if (! this.typeahead) {
// Get the items via ajax.
Expand Down

0 comments on commit cc818f0

Please sign in to comment.