From 9447c81ef0883907ec34f560261b0ee4333694b5 Mon Sep 17 00:00:00 2001 From: Mikita Siadykh Date: Thu, 11 Apr 2024 11:31:15 +0400 Subject: [PATCH] UIBULKED-416 avoid action menu flush (#515) (cherry picked from commit 960463f825da51400b622234ba5dc3e89ef3cbd5) --- src/components/BulkEditActionMenu/BulkEditActionMenu.js | 2 +- src/components/BulkEditPane/BulkEditPane.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/BulkEditActionMenu/BulkEditActionMenu.js b/src/components/BulkEditActionMenu/BulkEditActionMenu.js index 1cd18c65..cf9b7e11 100644 --- a/src/components/BulkEditActionMenu/BulkEditActionMenu.js +++ b/src/components/BulkEditActionMenu/BulkEditActionMenu.js @@ -95,8 +95,8 @@ const BulkEditActionMenu = ({ }; const handleOnStartEdit = (approach) => { - onEdit(approach); onToggle(); + onEdit(approach); }; const handleFileSave = (info) => { diff --git a/src/components/BulkEditPane/BulkEditPane.js b/src/components/BulkEditPane/BulkEditPane.js index 018d5e5b..412ad9ca 100644 --- a/src/components/BulkEditPane/BulkEditPane.js +++ b/src/components/BulkEditPane/BulkEditPane.js @@ -6,7 +6,6 @@ import { Pane, Paneset, } from '@folio/stripes/components'; -import { noop } from 'lodash/util'; import { BulkEditActionMenu } from '../BulkEditActionMenu'; import { BulkEditManualUploadModal } from './BulkEditListResult/BulkEditManualUploadModal'; @@ -139,10 +138,10 @@ export const BulkEditPane = () => { setIsBulkEditModalOpen(false); }; - const renderActionMenu = () => isActionMenuVisible && ( + const renderActionMenu = ({ onToggle }) => isActionMenuVisible && ( );