diff options
author | 2023-10-24 10:28:59 +0200 | |
---|---|---|
committer | 2023-10-24 10:28:59 +0200 | |
commit | 48a0687736cd1ff017f8dd04e3f6c11c5479a8df (patch) | |
tree | 5875b1956b0edcdba031e4caace9b4455fcd0fb7 /web/source/settings/lib/form/text.tsx | |
parent | [chore] update minify library (#2286) (diff) | |
download | gotosocial-48a0687736cd1ff017f8dd04e3f6c11c5479a8df.tar.xz |
[bugfix/frontend] Add `nosubmit` option to form fields + use it when instance custom CSS disabled (#2290)
Diffstat (limited to 'web/source/settings/lib/form/text.tsx')
-rw-r--r-- | web/source/settings/lib/form/text.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
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, |