Fix _textInputEmpty() for Chromium based browsers
Co-authored-by: luckman212 <1992842+luckman212@users.noreply.github.com>
This commit is contained in:
parent
56eb29c91b
commit
8a17b82fa4
|
@ -1306,7 +1306,7 @@ class SendTextDialog extends Dialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
_textInputEmpty() {
|
_textInputEmpty() {
|
||||||
return this.$text.innerText === "\n";
|
return !this.$text.innerText || this.$text.innerText === "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
_onChange(e) {
|
_onChange(e) {
|
||||||
|
|
|
@ -1307,7 +1307,7 @@ class SendTextDialog extends Dialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
_textInputEmpty() {
|
_textInputEmpty() {
|
||||||
return this.$text.innerText === "\n";
|
return !this.$text.innerText || this.$text.innerText === "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
_onChange(e) {
|
_onChange(e) {
|
||||||
|
|
Loading…
Reference in New Issue