Parcourir la source

Restore selectedElements on undelete (#1242)

* Restore selectedElements on undelete

* Update regressionTest snapshots
Shriram Balaji il y a 5 ans
Parent
commit
290244660b
2 fichiers modifiés avec 526 ajouts et 0 suppressions
  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,
 ): Partial<AppState> {
   return {
+    selectedElementIds: appState.selectedElementIds,
     exportBackground: appState.exportBackground,
     currentItemStrokeColor: appState.currentItemStrokeColor,
     currentItemBackgroundColor: appState.currentItemBackgroundColor,

Fichier diff supprimé car celui-ci est trop grand
+ 525 - 0
src/tests/__snapshots__/regressionTests.test.tsx.snap


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff