mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-29 10:12:17 -05:00
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:
committed by
GitHub
parent
499ecab691
commit
d6a7a2c21f
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user