arqex / arqex/react-datetime

ViewMode and setting value to '' doens't work [ 3.0.0-beta.8 ]

Open
#694 8 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
2k
Forks
858
PR merge metrics
No merged PRs in 30d

Description

I am talking about [ 3.0.0-beta.8 ]

![image](https://user-images.githubusercontent.com/20374208/76857070-62611c00-685d-11ea-835c-915b4dc7d6e9.png)

1. I tried all view modes .... 'days' , 'months' , 'years' nothing works .
It's always on 'days' .

2. I want to clear the value of datePicker if the user has selected already a date-time value but setting it to emtpy string `''` doesn't work.

![image](https://user-images.githubusercontent.com/20374208/76857005-347bd780-685d-11ea-9294-02ed344090a3.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the two behaviors in the ViewMode and value entry points described in the issue, using version 3.0.0-beta.8. Check why changing among days, months, and years remains on days and why assigning an empty string does not clear the selected date; done means both controls reflect those requested values.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.