pushtell / react-bootstrap-date-picker

React-Bootstrap based date picker.
MIT License
347 stars 195 forks source link

Add option to disable calendar popover #142

Open bkuzma opened 7 years ago

bkuzma commented 7 years ago

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 is true. I tested the component in Chrome 61.0.3163.100 on the examples page.

Types of changes

Checklist: