Comments (3)
I have given this some thought over time and don't think it should be a default. Especially because you will get a lot of extra padding for every form by default.
I thought about opening this on the material-ui repo but I think the response will be the same.
For anyone else finding this issue you can do this in userland with something like
import MuiTextField from '@material-ui/core/TextField';
import {fieldToTextField, TextField, TextFieldProps} from 'formik-material-ui';
const HelperTextReserveTextField = (props: TextFieldProps) => (
<MuiTextField
{...fieldToTextField({
...props,
helperText: props.helperText ? props.helperText: ' '
})}
/>
);
from formik-mui.
looks like helperText
is gone from new version and it's not documented. Where did it go?
from formik-mui.
This doesn't seem to be getting much attention, but yeah, I've wondered about this too. That shifting around of the fields and the form getting longer and shorter isn't great so ideally they would add that small fix you linked to. In the meantime, I'm sure a bunch of people have thought of adding the helperText=' '
prop to the <Field>
, but I thought I'd put it out there.
from formik-mui.
Related Issues (20)
- Add the npm installation script for documentation section
- TextField does not accept numeric value when using react-number-format
- Select contain box overlaps label HOT 2
- Ability to disable default blur handler HOT 6
- Reflect MUI changes regarding Date and Time pickers moved to MUI X from lab HOT 3
- Missing support for freesolo with Autocomplete HOT 1
- GH Pages Deploy Broken
- [DOCS] Reflect MUI changes regarding Date and Time pickers moved to MUI X from lab HOT 2
- when select size
- [BUG Select] Use HTMLElement.dataset to get option values in Select doesn't work HOT 4
- What is the `sxFormControl` in select `formControl` prop HOT 1
- numeric Select values are converted to a string
- Multiline TextField fullWidth is not working HOT 1
- ToggleButtonGroup should disable while submitting
- TextField label gets in the way with initial Chrome autofill value
- Support for Mui X v6 HOT 7
- Usage of `formError` in `fieldToSelect`?
- Date Field
- Following syntax for Autocomplete in docs yields onBlur error, while using the <MuiTextField /> instead "works" HOT 3
- formik-mui-x-date-pickers - The `renderInput` has been replaced by an input component slot props HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from formik-mui.