Skip to content

Commit 34d0a6c

Browse files
committed
Only set the value if there was something typed ...
Fixes the dropdown items not being selectable when you click them, or nulling out the value when you re-focus and re-blur.
1 parent 49fe0cc commit 34d0a6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/js/components/field-conditions/Builder.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ export default {
240240
},
241241
242242
fieldSelectBlur(index) {
243-
this.conditions[index].field = this.$refs.fieldSelect[index].$refs.search.value;
243+
const value = this.$refs.fieldSelect[index].$refs.search.value;
244+
if (value) this.conditions[index].field = value;
244245
},
245246
}
246247
}

0 commit comments

Comments
 (0)