Kaynağa Gözat

Restore selectedElements on undelete (#1242)

* Restore selectedElements on undelete

* Update regressionTest snapshots
Shriram Balaji 5 yıl önce
ebeveyn
işleme
290244660b

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

Dosya farkı çok büyük olduğundan ihmal edildi
+ 525 - 0
src/tests/__snapshots__/regressionTests.test.tsx.snap


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor