Merge v0.0.18 compose fixes.

This commit is contained in:
Cory McWilliams 2024-04-24 20:35:36 -04:00
commit 6cd9dea186
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{ {
"type": "tildefriends-app", "type": "tildefriends-app",
"emoji": "🐌", "emoji": "🐌",
"previous": "&IknYNSKcVBOL5mY056kj4vUtd2IbW91LOl6KFwSqaWM=.sha256" "previous": "&UDqtNEELPRZAP6jSrcKfoXpAr8s7GjWmWLOQINN4kmg=.sha256"
} }

View File

@ -342,7 +342,7 @@ class TfComposeElement extends LitElement {
remove_mention(id) { remove_mention(id) {
let draft = this.get_draft(); let draft = this.get_draft();
delete draft.mentions[id]; delete draft.mentions[id];
setTimeout(() => this.requestUpdate(), 0); setTimeout(() => this.notify(), 0);
} }
render_mention(mention) { render_mention(mention) {
@ -549,7 +549,7 @@ class TfComposeElement extends LitElement {
@input=${this.input} @input=${this.input}
@paste=${this.paste} @paste=${this.paste}
contenteditable contenteditable
innerText=${live(draft.text)} .innerText=${live(draft.text ?? '')}
></span> ></span>
</div> </div>
<div class="w3-half w3-padding"> <div class="w3-half w3-padding">