Browse Source

Restore selectedElements on undelete (#1242)

* Restore selectedElements on undelete

* Update regressionTest snapshots
Shriram Balaji 5 năm trước cách đây
mục cha
commit
290244660b

+ 1 - 0
src/appState.ts

@@ -66,6 +66,7 @@ export function clearAppStatePropertiesForHistory(
   appState: AppState,
   appState: AppState,
 ): Partial<AppState> {
 ): Partial<AppState> {
   return {
   return {
+    selectedElementIds: appState.selectedElementIds,
     exportBackground: appState.exportBackground,
     exportBackground: appState.exportBackground,
     currentItemStrokeColor: appState.currentItemStrokeColor,
     currentItemStrokeColor: appState.currentItemStrokeColor,
     currentItemBackgroundColor: appState.currentItemBackgroundColor,
     currentItemBackgroundColor: appState.currentItemBackgroundColor,

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 525 - 0
src/tests/__snapshots__/regressionTests.test.tsx.snap


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác