You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the disabled attribute appears to have no effect. All the dates appear enabled; the current date is selected.
and my onChange handler runs when a day is clicked.
Expected Behavior 🤔
I'd prefer that all days appear disabled and no callbacks run. This seems consistent with the docs, which saydisabled will "Disable picker and text field".
My software's UI is oriented to selecting/viewing existing segments of video. It only makes sense to select dates in which there is video available. Sometimes there are no such dates, eg if there are currently no cameras selected to view or if recording is broken. I think a static date picker makes the most sense because which dates are available is information I don't want to hide behind a click. I also don't think it makes sense for the date picker to appear and disappear (and thus other UI elements jump) based on whether any selection is valid; I'd rather it just appear disabled.
In my existing (ancient jQuery UI-based) interface, the date picker looks like this when disabled:
I just noticed the README banner: "This project is not longer supported. See #2157 for more details." I will move this over to https://github.com/mui-org/material-ui with a demo using that version...
(although if anyone who happens to read this has an easy workaround on this version, I'd be grateful)
Current Behavior 😯
If I create a static
DatePicker
such as this:the
disabled
attribute appears to have no effect. All the dates appear enabled; the current date is selected.and my
onChange
handler runs when a day is clicked.Expected Behavior 🤔
I'd prefer that all days appear disabled and no callbacks run. This seems consistent with the docs, which say
disabled
will "Disable picker and text field".Steps to Reproduce 🕹
https://codesandbox.io/s/hardcore-moser-qhexe
Steps:
Context 🔦
My software's UI is oriented to selecting/viewing existing segments of video. It only makes sense to select dates in which there is video available. Sometimes there are no such dates, eg if there are currently no cameras selected to view or if recording is broken. I think a static date picker makes the most sense because which dates are available is information I don't want to hide behind a click. I also don't think it makes sense for the date picker to appear and disappear (and thus other UI elements jump) based on whether any selection is valid; I'd rather it just appear disabled.
In my existing (ancient jQuery UI-based) interface, the date picker looks like this when disabled:
That's roughly what I want to match in my React/material-ui-based UI rewrite.
Your Environment 🌎
The text was updated successfully, but these errors were encountered: