arqex / arqex/react-datetime

Explicitly setting the default value null to open prop doesn't work as expected

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

Description

### Steps to Reproduce

Setting value to `open` prop based on a condition,
```
? false : null} />
```

### Expected Results
When I set `null` explicitly to `open` prop, it sound retain its default behaviour.

### Actual Results
When I set `null` explicitly to `open` prop, it behaves as if I set `false`

### Other Information
An ugly workaround can be found [here](https://stackoverflow.com/a/71644757/15400163).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.