`InputBase` with name as value
See original GitHub issueWhy InputBase
:
https://github.com/stackworx/formik-material-ui/blob/master/src/InputBase.tsx
export const fieldToInputBase = ({
field,
form: { isSubmitting },
disabled,
...props
}: InputBaseProps): MuiInputBaseProps => {
return {
disabled: disabled != undefined ? disabled : isSubmitting,
...props,
...field,
value: field.name,
};
};
inputs field name as its value. According to Material UI component demos, this is not a intended behaviour: https://material-ui.com/components/text-fields/#customized-inputs
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
`InputBase` with name as value · Issue #90 - GitHub
When we provide input element name as value it makes the field read only. And this is supposed to be used as a...
Read more >Get InputBase value out from the same component
First, you functional component should start with a capital letter, so change your declaration to: const StationSelection = .
Read more >InputBase API - Material UI - MUI
Name Type Default
autoComplete string
autoFocus bool false
classes object
Read more >InputBase<TValue> Class - Microsoft Learn
Gets or sets the display name for this field. This value is used when generating error messages when the input value fails to...
Read more >Class: inputBase - Oracle
When value changes as a result of user interaction all messages are cleared, including custom messages added by the app, and full validation...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
InputBase is currently unusable. PR #91 fixes this bug. Is there any reason why it has not been merged? 😅
Release in 0.22