Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 324a05d

Browse files
fix: access parent if container is reveal or drr
1 parent d39a9dc commit 324a05d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

studio/src/app/handlers/editor/events/deck/deck-events.handler.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,11 @@ export class DeckEventsHandler {
129129

130130
const element: HTMLElement = $event.detail as HTMLElement;
131131

132-
const parent: HTMLElement = element.parentElement;
132+
let parent: HTMLElement = element.parentElement;
133+
134+
if (SlotUtils.isNodeReveal(parent) || SlotUtils.isNodeDragDropResize(parent)) {
135+
parent = parent.parentElement;
136+
}
133137

134138
if (!parent || !parent.nodeName || parent.nodeName.toLowerCase().indexOf('deckgo-slide') <= -1) {
135139
return;

0 commit comments

Comments
 (0)