fix: x button not visible when close on click outside is not allowed (#5464)

Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
This commit is contained in:
Dhruwang Jariwala
2025-04-22 12:43:04 +05:30
committed by GitHub
parent 499ecab691
commit d6a7a2c21f
2 changed files with 1 additions and 3 deletions
@@ -63,7 +63,6 @@ export function Survey({
responseCount,
startAtQuestionId,
hiddenFieldsRecord,
clickOutside,
shouldResetQuestionId,
fullSizeCards = false,
autoFocus,
@@ -176,7 +175,7 @@ export function Survey({
const contentRef = useRef<HTMLDivElement | null>(null);
const showProgressBar = !styling.hideProgressBar;
const getShowSurveyCloseButton = (offset: number) => {
return offset === 0 && localSurvey.type !== "link" && (clickOutside ?? true);
return offset === 0 && localSurvey.type !== "link";
};
const getShowLanguageSwitch = (offset: number) => {
return localSurvey.showLanguageSwitch && localSurvey.languages.length > 0 && offset <= 0;
-1
View File
@@ -54,7 +54,6 @@ export interface SurveyContainerProps extends Omit<SurveyBaseProps, "onFileUploa
onOpenExternalURL?: (url: string) => void | Promise<void>;
mode?: "modal" | "inline";
containerId?: string;
clickOutside?: boolean;
darkOverlay?: boolean;
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "center";
action?: string;