typeahead: Change unused expression to just function calls.

This commit is contained in:
evykassirer
2024-03-01 14:13:51 -08:00
committed by Tim Abbott
parent 624a879b4e
commit 2085d90736

View File

@@ -207,9 +207,11 @@ import {get_string_diff} from "../../src/util";
set_value() {
const val = this.$menu.find(".active").data("typeahead-value");
this.$element.is("[contenteditable]")
? this.$element.html(val)
: this.$element.val(val);
if (this.$element.is("[contenteditable]")) {
this.$element.html(val);
} else {
this.$element.val(val);
}
if (this.on_move) {
this.on_move();