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

Datepicker should be usable without an input field. #1206

Closed
ghost opened this issue Jul 20, 2015 · 1 comment
Closed

Datepicker should be usable without an input field. #1206

ghost opened this issue Jul 20, 2015 · 1 comment
Labels
component: date picker This is the name of the generic UI component, not the React module! component: pickers This is the name of the generic UI component, not the React module!

Comments

@ghost
Copy link

ghost commented Jul 20, 2015

In its current form the datepicker has been implemented very awkwardly; the dialog window seems to have been implemented together with an input field. So when you tap the input field the date picker opens up. For the user it may not be very intuitive that tapping an input field will cause a date picker to pop up.

I'm trying to make the DatePicker appear using a custom button but I am finding this very difficult and I have had to resort to some dirty hacks to achieve this.

I propose that we expose the DatePickerDialog element to increase the flexibility of the date picker with very little additional effort.

@gchudnov
Copy link
Contributor

gchudnov commented Jul 6, 2016

Sorry for bringing up the old issue.

Is there any reason the initial state for open is false?

It would be great to open the DatePickerDialog declaratively, e.g. using the props.open property. It looks the author of the code considered that but it wasn't implemented.

mnajdova pushed a commit to mnajdova/material-ui that referenced this issue Nov 10, 2020
* Add babel transpilation to esm

* Use babel for rollup as well

* Fix missing * in jsdoc comment for ToolbarComponent
@zannager zannager added component: date picker This is the name of the generic UI component, not the React module! component: pickers This is the name of the generic UI component, not the React module! labels Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: date picker This is the name of the generic UI component, not the React module! component: pickers This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

2 participants