-
Notifications
You must be signed in to change notification settings - Fork 831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot Access "mask" parameters? #505
Comments
This method worked for me: <DatePicker
...
InputProps={{
inputProps: {
mask: ...,
keepCharPositions: true,
}
}}
...
/> |
That mostly works as a workaround, it overrides the localInputProps.inputProps completely which does some checking of keyboard input: but it should work for my use case, thank you. |
This no longer works with For example, in the following code
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wanted to use the keepCharPositions prop for the MaskedInput component but I cant figure out how to get the prop down to the component or if it has not been exposed by the DateTextField component yet.
The addtional props could be accepted here: https://github.com/dmtrKovalenko/material-ui-pickers/blob/c02a0f2f68a3c463b3b271378dd80e522363bc72/lib/src/_shared/DateTextField.jsx#L298
or should the props for mask be spread in here?: https://github.com/dmtrKovalenko/material-ui-pickers/blob/c02a0f2f68a3c463b3b271378dd80e522363bc72/lib/src/_shared/DateTextField.jsx#L330
mask documentation: https://github.com/text-mask/text-mask/blob/master/componentDocumentation.md#readme
The text was updated successfully, but these errors were encountered: