diff --git a/src/components/organisms/RightSidePanel.tsx b/src/components/organisms/RightSidePanel.tsx index c5d93ded..9cc78fe4 100644 --- a/src/components/organisms/RightSidePanel.tsx +++ b/src/components/organisms/RightSidePanel.tsx @@ -129,6 +129,18 @@ export const RightSidePanel = () => { // updateListStepField(stepId, key, value); // }; + const handleConfirmListCapture = useCallback(() => { + if (!selectedOption) { + setShowListOptions(true); + return; + } + // Proceed to stop capture and emit settings only after option is selected + stopCaptureAndEmitGetListSettings(); + setShowListOptions(false); // Reset options display + setSelectedOption(null); // Reset selected option + }, [selectedOption, stopCaptureAndEmitGetListSettings]); + + const captureScreenshot = (fullPage: boolean) => { const screenshotSettings: ScreenshotSettings = { fullPage,