Skip to content

Commit 4182bf7

Browse files
authored
Merge pull request #439 from xlcrr/master
Add prop to prevent hide Closes #438
2 parents caec09e + f9cbf59 commit 4182bf7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/vue-simple-suggest.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ export default {
135135
type: String,
136136
default: 'input',
137137
validator: value => !!~Object.keys(modes).indexOf(value.toLowerCase())
138+
},
139+
preventHide: {
140+
type: Boolean,
141+
default: false
138142
}
139143
},
140144
// Handle run-time mode changes (now working):
@@ -460,7 +464,8 @@ export default {
460464
suggestionClick (suggestion, e) {
461465
this.$emit('suggestion-click', suggestion, e)
462466
this.select(suggestion)
463-
this.hideList()
467+
468+
if (!this.preventHide) this.hideList()
464469
465470
/// Ensure, that all needed flags are off before finishing the click.
466471
this.isClicking = false

0 commit comments

Comments
 (0)