Disable send text button after dialog has been hidden

This commit is contained in:
schlagmichdoch 2024-02-21 18:21:05 +01:00
parent 755d5e29f0
commit d3e7de89cd
1 changed files with 5 additions and 0 deletions

View File

@ -2319,6 +2319,11 @@ class SendTextDialog extends Dialog {
text: this.$text.innerText
});
this.hide();
}
hide() {
super.hide();
this.$submit.setAttribute('disabled', true);
setTimeout(() => this.$text.innerText = "", 300);
}
}