mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-05 17:33:49 +00:00
Disable send text button after dialog has been hidden
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user