I added a prop called calendarDisabled which prevents a calendar popover from being rendered when the input is focused. I added a corresponding test as well as an example to the example page.
Motivation and Context
This would be useful in cases where the user is entering a date far in the past, such as a birthday, and it's more straightforward to type the date than to click back month by month for possibly dozens of years.
How Has This Been Tested?
I wrote a test which verifies that the popover isn't rendered when the calendarDisabled prop is true. I tested the component in Chrome 61.0.3163.100 on the examples page.
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
Table of Contents
Description
I added a prop called
calendarDisabled
which prevents a calendar popover from being rendered when the input is focused. I added a corresponding test as well as an example to the example page.Motivation and Context
This would be useful in cases where the user is entering a date far in the past, such as a birthday, and it's more straightforward to type the date than to click back month by month for possibly dozens of years.
How Has This Been Tested?
I wrote a test which verifies that the popover isn't rendered when the
calendarDisabled
prop istrue
. I tested the component in Chrome 61.0.3163.100 on the examples page.Types of changes
Checklist: