mirror of https://github.com/zulip/zulip.git
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:
parent
1bb45dd946
commit
70a14d8b44
|
@ -1901,7 +1901,7 @@
|
||||||
, lookup: function (event) {
|
, lookup: function (event) {
|
||||||
var items
|
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.options.helpOnEmptyStrings) {
|
||||||
if (!this.query || this.query.length < this.options.minLength) {
|
if (!this.query || this.query.length < this.options.minLength) {
|
||||||
|
|
Loading…
Reference in New Issue