bootstrap: Patch bootstrap.js to support contenteditable.

If the lookup input is contenteditable, it should be searching for text
rather than input.
This commit is contained in:
Brock Whittaker 2017-11-10 13:10:25 -08:00 committed by Tim Abbott
parent 1bb45dd946
commit 70a14d8b44
1 changed files with 1 additions and 1 deletions

View File

@ -1901,7 +1901,7 @@
, lookup: function (event) {
var items
this.query = this.$element.val()
this.query = this.$element.is("[contenteditable]") ? this.$element.text() : this.$element.val();
if (!this.options.helpOnEmptyStrings) {
if (!this.query || this.query.length < this.options.minLength) {