mirror of
https://github.com/owncast/owncast.git
synced 2025-11-03 04:27:18 +08:00
set default initialValue to an empty string in TextFieldWithSubmit component (#4207)
This commit is contained in:
@ -27,7 +27,7 @@ export type TextFieldWithSubmitProps = TextFieldProps & {
|
|||||||
export const TextFieldWithSubmit: FC<TextFieldWithSubmitProps> = ({
|
export const TextFieldWithSubmit: FC<TextFieldWithSubmitProps> = ({
|
||||||
apiPath,
|
apiPath,
|
||||||
configPath = '',
|
configPath = '',
|
||||||
initialValue,
|
initialValue = '',
|
||||||
useTrim,
|
useTrim,
|
||||||
useTrimLead,
|
useTrimLead,
|
||||||
...textFieldProps // rest of props
|
...textFieldProps // rest of props
|
||||||
@ -152,8 +152,3 @@ export const TextFieldWithSubmit: FC<TextFieldWithSubmitProps> = ({
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
TextFieldWithSubmit.defaultProps = {
|
|
||||||
configPath: '',
|
|
||||||
initialValue: '',
|
|
||||||
};
|
|
||||||
|
|||||||
Reference in New Issue
Block a user