mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
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:
committed by
Tim Abbott
parent
1bb45dd946
commit
70a14d8b44
2
static/third/bootstrap/js/bootstrap.js
vendored
2
static/third/bootstrap/js/bootstrap.js
vendored
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user