Material-ui-pickers: InlineDatePicker isn't clearable via keyboard

Created on 28 Jan 2019  路  8Comments  路  Source: mui-org/material-ui-pickers

Environment

| Tech | Version |
|---------------------|---------|
| material-ui-pickers | 2.1.2 |
| material-ui | 3.2.0 |
| React | 16.5.2 |
| Browser | Chrome |
| Peer library | moment |

Steps to reproduce

  1. Clear out the input field value
  2. See the console log for the onChange event only firing for the regular DatePicker and not the InlinePicker

Expected behavior

  • Clearing out the input for an inline date picker should fire onChange event with null value

Actual behavior

  • Doesn't fire event.
  • Works fine with regular DatePicker

Live example

(side note: the example sandbox link has very outdated dependancies)

https://codesandbox.io/s/50pn28k03k

clear-calendar

bug 馃悰

Most helpful comment

Nice catch! Will be fixed asap

All 8 comments

Nice catch! Will be fixed asap

Nice catch! Will be fixed asap

Many thanks!!

Tech | Version
-- | --
material-ui-pickers | 2.1.1
material-ui | 3.7.0
React | 16.7.0
Browser | Chrome
Peer library | date-fns

+1

Did anyone was able to fix it?

I wanted to ask a question here without creating a whole new bug, since it's related to the inline date picker -- is there a reason the dialogActions are disabled in the inline version? So if I want the ability to set 'today' I have to use the regular modal version?

@visarts yes, for inline datepicker it is not possible to add modal actions. You can play around input adornments if you want additional controls

Thanks @dmtrKovalenko for the quick work around.
You can close this issue

Thanks @dmtrKovalenko for the quick work around.
You can close this issue

agreed, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brett-patterson picture brett-patterson  路  3Comments

danmce picture danmce  路  3Comments

basselAhmed picture basselAhmed  路  3Comments

Lysander picture Lysander  路  3Comments

nicky-dev picture nicky-dev  路  3Comments