Skip to content

Commit

Permalink
fix: fixed scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
mishramonalisha76 committed Oct 5, 2023
1 parent f040358 commit 6859230
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const MoreOptionsContainer = ({
const dropdownRef = useRef<any>(null);

useClickAway(dropdownRef, () => setSelectedIndex(null));

console.log('in dropdown')
return (
<Section onClick={() => handleMoreOptionsClick(row, col)}>
<MoreDarkIcon color={theme.iconColor?.groupSettings} />
Expand Down Expand Up @@ -125,6 +125,7 @@ const ConditionsComponent = ({ conditionData,deleteFunction,updateFunction }: Cr
useClickAway(dropdownRef, () => setSelectedIndex(null));

const handleMoreOptionsClick = (row: number, col: number) => {
console.log('in click')
setSelectedIndex([row, col]);
};

Expand Down

0 comments on commit 6859230

Please sign in to comment.