mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
typeahead: Change unused expression to just function calls.
This commit is contained in:
@@ -207,9 +207,11 @@ import {get_string_diff} from "../../src/util";
|
|||||||
|
|
||||||
set_value() {
|
set_value() {
|
||||||
const val = this.$menu.find(".active").data("typeahead-value");
|
const val = this.$menu.find(".active").data("typeahead-value");
|
||||||
this.$element.is("[contenteditable]")
|
if (this.$element.is("[contenteditable]")) {
|
||||||
? this.$element.html(val)
|
this.$element.html(val);
|
||||||
: this.$element.val(val);
|
} else {
|
||||||
|
this.$element.val(val);
|
||||||
|
}
|
||||||
|
|
||||||
if (this.on_move) {
|
if (this.on_move) {
|
||||||
this.on_move();
|
this.on_move();
|
||||||
|
|||||||
Reference in New Issue
Block a user