2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-29 05:14:04 +03:00

Pull onTab up to prop, add test

This commit is contained in:
Jeff
2018-08-07 21:13:34 -07:00
parent d2efc965f9
commit 237e946c19
2 changed files with 30 additions and 12 deletions
+12 -10
View File
@@ -549,6 +549,18 @@
}
},
/**
* Select the current value if selectOnTab is enabled
*/
onTab: {
type: Function,
default: function () {
if (this.selectOnTab) {
this.typeAheadSelect();
}
},
},
/**
* Enable/disable creating options from searchInput.
* @type {Boolean}
@@ -927,16 +939,6 @@
}
},
/**
* Select the current value if selectOnTab is enabled
* @return {void}
*/
onTab() {
if (this.selectOnTab) {
this.typeAheadSelect();
}
},
/**
* Determine if an option exists
* within this.mutableOptions array.