Skip to content

Commit

Permalink
fix: BelongsTo and SearchInput need valid props and disabled mode (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
staylorwr committed Oct 1, 2021
1 parent b216350 commit cc5dd8b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion assets/src/components/Form/BelongsTo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
>
<template slot="field">
<search-input
v-if="!isLocked"
:disabled="isLocked"
:error="hasError"
:value="selectedResource"
:data="availableResources"
Expand Down
16 changes: 8 additions & 8 deletions assets/src/components/SearchInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -244,21 +244,21 @@ export default {
},
open () {
// if (!this.disabled) {
this.show = true;
this.search = '';
// }
if (!this.disabled) {
this.show = true;
this.search = '';
}
},
close () {
this.show = false;
},
clear () {
// if (!this.disabled) {
this.selected = null;
this.$emit('clear', null);
// }
if (!this.disabled) {
this.selected = null;
this.$emit('clear', null);
}
},
move (offset) {
Expand Down

0 comments on commit cc5dd8b

Please sign in to comment.