Skip to content

Commit 43f0cdc

Browse files
authored
Forms: Fixes the double close (#45557)
* Forms: Fix sidePanelItem prop logic in InboxView Updates the SingleResponseView component to only pass sidePanelItem when there is a selection, preventing unintended behavior when selection is empty. * changelog
1 parent f713cf5 commit 43f0cdc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fixed
3+
4+
Forms: fix a bug that you makes you click the close button twice.

projects/packages/forms/src/dashboard/inbox/dataviews/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ export default function InboxView() {
395395
/>
396396
</div>
397397
<SingleResponseView
398-
sidePanelItem={ sidePanelItem }
398+
sidePanelItem={ selection.length && sidePanelItem }
399399
setSidePanelItem={ setSidePanelItem }
400400
isLoadingData={ isLoadingData }
401401
isMobile={ isMobile }

0 commit comments

Comments
 (0)