Skip to content

Commit

Permalink
removed perfomance optimization, have to add optimization later
Browse files Browse the repository at this point in the history
  • Loading branch information
aghontpi committed Oct 13, 2021
1 parent 4e4df82 commit a25600d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Components/HtmlWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ export const HtmlWrapper = memo(({ uniqueKey, originalNode }: HtmlWrapperProps)

const memoFind = useCallback((e: HTMLElement) => findColumnOfElement(e), []);

const onDragOver = useCallback((e: any) => {
//todo: add removed perfomance optimization once functionality dev is complete.
const onDragOver = (e: any) => {
const currentTarget = e.nativeEvent.target;
const nearestTag = findClosestParent(currentTarget);
// only show place item sign for column's children
Expand All @@ -177,7 +178,7 @@ export const HtmlWrapper = memo(({ uniqueKey, originalNode }: HtmlWrapperProps)
setMjmlJson,
event: e,
});
}, []);
};

return useMemo(
() =>
Expand Down

0 comments on commit a25600d

Please sign in to comment.