Commit 12ba727
authored
fix(comments): emit empty comment positions so undo clears orphan bubbles (#2235)
* fix(comments): emit empty comment positions so undo clears orphan bubbles
PresentationEditor skipped emission when positions were empty, so undoing
the last tracked-change mark never signaled the store to clear stale data.
Also fix getFloatingComments to use isEditorBackedComment() so tracked-change
comments (which lack selection.source) require live positions like editor comments.
* fix(comments): use `in` operator for position key lookup
Avoids rebuilding Object.keys() array per comment in getFloatingComments filter.
* fix(tests): wait for dialog deactivation before re-activating in collapse test
Firefox needs the active dialog to fully unmount before re-activation,
otherwise the thread renders expanded instead of collapsed.1 parent e925ef9 commit 12ba727
4 files changed
Lines changed: 32 additions & 9 deletions
File tree
- packages
- super-editor/src/core/presentation-editor
- superdoc/src/stores
- tests/behavior/tests/comments
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3524 | 3524 | | |
3525 | 3525 | | |
3526 | 3526 | | |
3527 | | - | |
| 3527 | + | |
| 3528 | + | |
3528 | 3529 | | |
3529 | 3530 | | |
3530 | 3531 | | |
3531 | | - | |
3532 | | - | |
3533 | | - | |
3534 | | - | |
| 3532 | + | |
3535 | 3533 | | |
3536 | 3534 | | |
3537 | 3535 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
876 | 876 | | |
877 | 877 | | |
878 | 878 | | |
879 | | - | |
880 | | - | |
881 | | - | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
882 | 883 | | |
883 | | - | |
| 884 | + | |
884 | 885 | | |
885 | 886 | | |
886 | 887 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
946 | 946 | | |
947 | 947 | | |
948 | 948 | | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
949 | 968 | | |
950 | 969 | | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
0 commit comments