Commit 9caa949
authored
fix(tldraw): fix reparenting in groups after a deletion (tldraw#8925)
Closes tldraw#8857
Deleting a shape in a group made the reparenting to repop the group at a
different z-index, this should not happen and the group should keep the
same index it previously owned
### Change type
- [x] `bugfix`
- [ ] `improvement`
- [ ] `feature`
- [ ] `api`
- [ ] `other`
### Test plan
Described in tldraw#8857
- [ ] Unit tests
- [ ] End to end tests
### Release notes
- Fixed an issue with deleting shapes in a group that caused a
reparenting of the group at a different z-index1 parent 84056a8 commit 9caa949
2 files changed
Lines changed: 17 additions & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1157 | 1157 | | |
1158 | 1158 | | |
1159 | 1159 | | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
1160 | 1176 | | |
1161 | 1177 | | |
1162 | 1178 | | |
| |||
0 commit comments