onefinestay / react-daterange-picker

Other
563 stars 208 forks source link

Not require selectedLabel and hide if empty #106

Open jontelm opened 8 years ago

jontelm commented 8 years ago

Hi,

Can we make it possible to hide selectedLabel? When I using the calendar just to show dates available / unavailable and set selectable to false, I still get the selectedLabel.

Here is a fix. (I'm new to contributing to repos and had problems to run "npm run lint" and "npm run test")

https://github.com/bookingbricks/react-daterange-picker/commit/cc3aa6188bfe792472035efd296b88ec2e059d75

Thanks for a nice component btw, exactly what I looking for.