2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-19 09:50:33 +03:00

feat: merge upstream into beta channel (#1589)

This commit is contained in:
Jeff Sagal
2022-02-18 13:55:34 -08:00
committed by GitHub
parent 7a3b373d43
commit ff2806876d
40 changed files with 2565 additions and 3146 deletions
+14 -2
View File
@@ -9,11 +9,23 @@ import Vue from 'vue'
* @param Wrapper {Wrapper<Vue>}
* @param searchText
*/
export const searchSubmit = (Wrapper, searchText = false) => {
export const searchSubmit = async (Wrapper, searchText = undefined) => {
await Wrapper.get('input').trigger('focus')
if (searchText) {
Wrapper.vm.search = searchText
await Wrapper.vm.$nextTick()
}
Wrapper.get('input').trigger('keydown.enter')
await Wrapper.get('input').trigger('keydown.enter')
}
/**
* Focus the search input
*/
export const searchFocus = async (Wrapper) => {
await Wrapper.get('input').trigger('focus')
await Wrapper.vm.$nextTick()
}
/**