mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[bugfix/frontend] Add nosubmit
option to form fields + use it when instance custom CSS disabled (#2290)
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user