From 48a0687736cd1ff017f8dd04e3f6c11c5479a8df Mon Sep 17 00:00:00 2001
From: tobi <31960611+tsmethurst@users.noreply.github.com>
Date: Tue, 24 Oct 2023 10:28:59 +0200
Subject: [bugfix/frontend] Add `nosubmit` option to form fields + use it when
 instance custom CSS disabled (#2290)

---
 web/source/settings/lib/form/text.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'web/source/settings/lib/form/text.tsx')

diff --git a/web/source/settings/lib/form/text.tsx b/web/source/settings/lib/form/text.tsx
index c0b9b93c6..822675cdd 100644
--- a/web/source/settings/lib/form/text.tsx
+++ b/web/source/settings/lib/form/text.tsx
@@ -39,7 +39,8 @@ export default function useTextInput(
 		dontReset = false,
 		validator,
 		showValidation = true,
-		initValidation
+		initValidation,
+		nosubmit = false,
 	}: HookOpts<string>
 ): TextFormInputHook {
 	const [text, setText] = useState(initialValue);
@@ -91,6 +92,7 @@ export default function useTextInput(
 		reset,
 		name,
 		Name: "", // Will be set by inputHook function.
+		nosubmit,
 		value: text,
 		ref: textRef,
 		setter: setText,
-- 
cgit v1.2.3

