Skip to content

Commit

Permalink
UIBULKED-416 avoid action menu flush (#515)
Browse files Browse the repository at this point in the history
(cherry picked from commit 960463f)
  • Loading branch information
NikitaSedyx authored and vashjs committed Apr 12, 2024
1 parent 2a63746 commit 9447c81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/BulkEditActionMenu/BulkEditActionMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ const BulkEditActionMenu = ({
};

const handleOnStartEdit = (approach) => {
onEdit(approach);
onToggle();
onEdit(approach);
};

const handleFileSave = (info) => {
Expand Down
5 changes: 2 additions & 3 deletions src/components/BulkEditPane/BulkEditPane.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -139,10 +138,10 @@ export const BulkEditPane = () => {
setIsBulkEditModalOpen(false);
};

const renderActionMenu = () => isActionMenuVisible && (
const renderActionMenu = ({ onToggle }) => isActionMenuVisible && (
<BulkEditActionMenu
onEdit={handleStartBulkEdit}
onToggle={noop}
onToggle={onToggle}
setFileInfo={setFileInfo}
/>
);
Expand Down

0 comments on commit 9447c81

Please sign in to comment.