From d0733b19602a2b1d0b76d4a5b5a5dd17365ba362 Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Thu, 23 Dec 2021 01:47:14 +0530 Subject: [PATCH] fix: move binded text when moving container using keyboard (#4466) --- src/components/App.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index 27a6041b..64c9a27c 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -1679,9 +1679,11 @@ class App extends React.Component { ? ELEMENT_SHIFT_TRANSLATE_AMOUNT : ELEMENT_TRANSLATE_AMOUNT); - const selectedElements = this.scene - .getElements() - .filter((element) => this.state.selectedElementIds[element.id]); + const selectedElements = getSelectedElements( + this.scene.getElements(), + this.state, + true, + ); let offsetX = 0; let offsetY = 0;