Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ const DraggableQuestion: React.FC<DraggableQuestionProps> = ({
data: {
type: subQuestionIndex === null || subQuestionIndex === undefined ? 'question' : 'obsQuestion',
question: {
handleDuplicateQuestion: handleDuplicateQuestion,
onSchemaChange: onSchemaChange,
pageIndex: pageIndex,
sectionIndex: sectionIndex,
question: question,
questionCount: questionCount,
questionIndex: questionIndex,
subQuestionIndex: subQuestionIndex !== null ? subQuestionIndex : null,
schema: schema,
handleDuplicateQuestion,
onSchemaChange,
pageIndex,
sectionIndex,
question,
questionCount,
questionIndex,
subQuestionIndex,
schema,
Comment on lines +78 to +86
Copy link
Contributor

@sourav-jyoti sourav-jyoti Feb 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can revert back this changes to decrease the no of changes, as this doesn't effect the issue

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sourav-jyoti for your suggestions, I did it kindly review.

},
},
disabled: questionCount <= 1 && (subQuestionIndex === undefined || subQuestionIndex === null),
Expand Down Expand Up @@ -123,6 +123,7 @@ const DraggableQuestion: React.FC<DraggableQuestionProps> = ({
label={t('dragToReorder', 'Drag to reorder')}
kind="ghost"
size="md"
onClick={(e) => e.stopPropagation()}
>
<Draggable />
</IconButton>
Expand All @@ -140,7 +141,10 @@ const DraggableQuestion: React.FC<DraggableQuestionProps> = ({
enterDelayMs={defaultEnterDelayInMs}
label={t('duplicateQuestion', 'Duplicate question')}
kind="ghost"
onClick={handleDuplicate}
onClick={(e) => {
e.stopPropagation();
handleDuplicate();
}}
size="md"
>
<Copy />
Expand All @@ -149,7 +153,10 @@ const DraggableQuestion: React.FC<DraggableQuestionProps> = ({
enterDelayMs={defaultEnterDelayInMs}
label={t('editQuestion', 'Edit question')}
kind="ghost"
onClick={launchEditQuestionModal}
onClick={(e) => {
e.stopPropagation();
launchEditQuestionModal();
}}
size="md"
>
<Edit />
Expand All @@ -158,13 +165,16 @@ const DraggableQuestion: React.FC<DraggableQuestionProps> = ({
enterDelayMs={defaultEnterDelayInMs}
label={t('deleteQuestion', 'Delete question')}
kind="ghost"
onClick={launchDeleteQuestionModal}
onClick={(e) => {
e.stopPropagation();
launchDeleteQuestionModal();
}}
size="md"
>
<TrashCan />
</IconButton>
{question?.questions && question?.questions.length > 0 && (
<span className={styles.collapseIconWrapper}>
<span className={styles.collapseIconWrapper} onClick={(e) => e.stopPropagation()}>
{isCollapsed ? (
<ChevronDownIcon className={styles.collapseIcon} aria-label="Expand" />
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}

:global(.cds--tooltip) {
z-index: 1;
z-index: 9999 !important;
}
}

Expand Down