Skip to content

Commit

Permalink
Merge pull request #3673 from illacloud/beta
Browse files Browse the repository at this point in the history
fix: change canvas click stopPropagation
  • Loading branch information
AruSeito authored Feb 2, 2024
2 parents 18aac53 + 362bfd2 commit 7656ecb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,17 +125,17 @@ export const ResizingAndDragContainer: FC<ResizingAndDragContainerProps> = (
const handleOnSelection = (e: MouseEvent<HTMLDivElement>) => {
const rootState = store.getState()
const isEditMode = getIsILLAEditMode(rootState)
if (isGlobalResizing || !isEditMode) return
const displayNameMapDepth = getComponentDisplayNameMapDepth(rootState)
const widgetExecutionLayoutInfo = getClientWidgetLayoutInfo(rootState)

e.stopPropagation()

if (isGlobalResizing || !isEditMode) return
FocusManager.switchFocus("canvas", {
displayName: displayName,
type: "component",
clickPosition: [],
})

e.stopPropagation()

trackInEditor(ILLA_MIXPANEL_EVENT_TYPE.SELECT, {
element: "component",
parameter1: "click",
Expand Down

0 comments on commit 7656ecb

Please sign in to comment.