Commit 55171f0
committed
fix: UP-21 preserve new content after save (don't call cancel post-save)
AcbMsgEditCancel was called after a successful save, which restored the
original bubble content from dataset.originalContent, overwriting the
freshly rendered new text. Fix: instead of calling cancel, inline the
cleanup (remove msg-editing class, re-enable edit button, clear dataset)
so the new content rendered by AcbMessageRenderer is preserved.
Test: add assertion that bubble.textContent === 'new text' after save.1 parent 009e6cb commit 55171f0
2 files changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| |||
308 | 312 | | |
309 | 313 | | |
310 | 314 | | |
| 315 | + | |
| 316 | + | |
311 | 317 | | |
312 | 318 | | |
313 | 319 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1579 | 1579 | | |
1580 | 1580 | | |
1581 | 1581 | | |
1582 | | - | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
1583 | 1587 | | |
1584 | 1588 | | |
1585 | 1589 | | |
| |||
0 commit comments