fix :: event manager closes on select of event (#6136)

This commit is contained in:
Kiran Ashok 2023-05-10 11:07:26 +05:30 committed by GitHub
parent 142d54bc50
commit fe2a51c722
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -741,7 +741,7 @@ export const EventManager = ({
const actionMeta = ActionTypes.find((action) => action.id === event.actionId);
const rowClassName = `card-body p-0 ${focusedEventIndex === index ? ' bg-azure-lt' : ''}`;
return (
<Draggable key={`${event.eventId}-${index}`} draggableId={`${event.eventId}-${index}`} index={index}>
<Draggable key={index} draggableId={`${event.eventId}-${index}`} index={index}>
{renderDraggable((provided, snapshot) => {
if (snapshot.isDragging && focusedEventIndex !== null) {
setFocusedEventIndex(null);