Skip to content
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

Enable user to input date from the keyboard or remove it #262

Open
jacoob1406 opened this issue Jul 11, 2018 · 1 comment
Open

Enable user to input date from the keyboard or remove it #262

jacoob1406 opened this issue Jul 11, 2018 · 1 comment

Comments

@jacoob1406
Copy link

I am using DatePicker as a component to my Field from redux form. Right now each time I focus on the field the date picker opens. I cannot write the date to the input from the keyboadrd on my own (or paste it). I would like to combine both - enable user to paste/input the date from keyboard or pick it from date picker... Moreover make it possible to remove the value from it and leave it empty. How can I achieve this ?

import { Field, reduxForm } from 'redux-form';
import { DatePicker } from 'redux-form-material-ui';
<Field
  name="dateOfBirth"
  type="text"
  component={DatePicker}
  fullWidth
  formatDate={formatDate}
/>
@jacoob1406 jacoob1406 changed the title Enable user to input date or remove it Enable user to input date from the keyboard or remove it Jul 11, 2018
@mihirsoni
Copy link
Collaborator

@jacoob1406 Datepicker is now part of MUI, this library will support MUI1.0 and grater , you can use this by installing @next

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants