Skip to content

Commit 2427064

Browse files
eriknygrensagalbot
andauthored
feat(taggable): retain input focus after adding a tag in noDrop (sagalbot#755)
Co-authored-by: Jeff Sagal <sagalbot@gmail.com>
1 parent fc643db commit 2427064

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/Select.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,6 +1041,9 @@ export default {
10411041
if (this.clearSearchOnSelect) {
10421042
this.search = ''
10431043
}
1044+
if (this.noDrop && this.multiple) {
1045+
this.$nextTick(() => this.$refs.search.focus())
1046+
}
10441047
},
10451048
10461049
/**

0 commit comments

Comments
 (0)