Skip to content

Commit ac4fdb3

Browse files
committed
fix: field parent clickability
1 parent cc71759 commit ac4fdb3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/visualBuilder/listeners/mouseHover.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ function isFieldPathDropdown(target: HTMLElement): boolean {
200200
return target.classList.contains("visual-builder__focused-toolbar__field-label-wrapper") || target.classList.contains("visual-builder__focused-toolbar__field-label-wrapper__current-field");
201201
}
202202

203+
function isFieldPathParent(target: HTMLElement): boolean {
204+
return target.classList.contains("visual-builder__focused-toolbar__field-label-wrapper__parent-field");
205+
}
206+
203207
const throttledMouseHover = throttle(async (params: HandleMouseHoverParams) => {
204208
const eventDetails = getCsDataOfElement(params.event);
205209
const eventTarget = params.event.target as HTMLElement | null;
@@ -221,7 +225,7 @@ const throttledMouseHover = throttle(async (params: HandleMouseHoverParams) => {
221225
}
222226
if(
223227
eventTarget &&
224-
isFieldPathDropdown(eventTarget)
228+
(isFieldPathDropdown(eventTarget) || isFieldPathParent(eventTarget))
225229
) {
226230
params.customCursor && hideCustomCursor(params.customCursor);
227231
showOutline();

0 commit comments

Comments
 (0)