Plugin should accept strings and an empty string when no date is provided
See original GitHub issueFirst of all, why does the plugin only accept Date objects? I think it would be easier to work with if it accepted date-like strings as well. Check - https://github.com/Hacker0x01/react-datepicker
This comes in handy when there was no date provided. It should default to an empty box with the placeholder and no bugs. Currently its throwing an error -
"Warning: Failed prop type: Invalid prop value
of type String
supplied to DateInput
, expected instance of Date
. in DateInput
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
What is the best way to test for an empty string with jquery-out ...
The accepted answer will fail when you input a 0, however it will work for 1, 2, 3, 4 etc. Isn't if (!a....
Read more >Understanding Null Versus the Empty String
The value null represents the absence of any object, while the empty string is an object of type String with zero characters.
Read more >getting Transformation Error while converting empty string to ...
I have a Expression Transformation that converts input string to a date. Input is of format MM/DD/YYYY (from SQLServer source table). Input data...
Read more >Handle empty strings when migrating from Oracle to PostgreSQL
Handling NVL and COALESCE The COALESCE function works perfectly fine for data types other than strings. This is because strings can accept ......
Read more ><input type="search"> - HTML: HyperText Markup Language
If no validation constraints are in place for the input (see Validation for more details), the value can be any text string or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @TechyTimo, in v6.5.0:
Your last comment may be considered a separate ticket 😃 I’m tracking it in #29.
Let me know what you think!
Works nicely. Thanks a lot for this