Преглед на файлове

Restore selectedElements on undelete (#1242)

* Restore selectedElements on undelete

* Update regressionTest snapshots
Shriram Balaji преди 5 години
родител
ревизия
290244660b
променени са 2 файла, в които са добавени 526 реда и са изтрити 0 реда
  1. 1 0
      src/appState.ts
  2. 525 0
      src/tests/__snapshots__/regressionTests.test.tsx.snap

+ 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,

Файловите разлики са ограничени, защото са твърде много
+ 525 - 0
src/tests/__snapshots__/regressionTests.test.tsx.snap


Някои файлове не бяха показани, защото твърде много файлове са промени