diff --git a/resources/js/components/inputs/relationship/SelectField.vue b/resources/js/components/inputs/relationship/SelectField.vue index 986d4d6ed5..1a339a6442 100644 --- a/resources/js/components/inputs/relationship/SelectField.vue +++ b/resources/js/components/inputs/relationship/SelectField.vue @@ -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" @@ -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.