From 84e72a53b9bffd737579f7dcd112835a9d95faa5 Mon Sep 17 00:00:00 2001 From: Aleksey Novikov Date: Tue, 1 Oct 2024 10:11:54 +0300 Subject: [PATCH] #5849 Toolbox. Shows a submenu on the button hover. Fixes #5849 --- packages/survey-creator-core/src/components/question.scss | 4 +++- packages/survey-creator-core/src/survey-elements.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/survey-creator-core/src/components/question.scss b/packages/survey-creator-core/src/components/question.scss index 1470d76610..2bed217da8 100644 --- a/packages/survey-creator-core/src/components/question.scss +++ b/packages/survey-creator-core/src/components/question.scss @@ -781,7 +781,9 @@ svc-question, & > * { display: none; } - + .svc-question__drop-indicator { + display: block; + } .svc-question__drag-area { display: flex; } diff --git a/packages/survey-creator-core/src/survey-elements.ts b/packages/survey-creator-core/src/survey-elements.ts index e114eb3258..36f7564124 100644 --- a/packages/survey-creator-core/src/survey-elements.ts +++ b/packages/survey-creator-core/src/survey-elements.ts @@ -326,6 +326,7 @@ export class DragDropSurveyElements extends DragDropCore { } dragOverLocation = dragOverLocationIfNotAllowed; this.dragOverLocation = dragOverLocation; + this.insideContainer = false; if (!this.isAllowDragOver(dropTarget, dragOverLocation)) { this.allowDropHere = false; return;