surveyjs / custom-widgets

The collection of custom widgets for SurveyJS: Survey Library and Survey Creator :package:
https://surveyjs.io
MIT License
79 stars 78 forks source link

Bootstrap-datepicker - Unable to set date with the widget #267

Closed mikekidder closed 3 years ago

mikekidder commented 3 years ago

Assumption: The enhancement to datepicker in #257 released in milestone 1.8.50 breaks the ability to select a date from the widget.

From the online examples: https://surveyjs.io/Examples/Library?id=custom-widget-bootstrapdatepicker&platform=Knockoutjs&theme=modern

Everything is greyed out and cannot be selected.

Here is working sample (Plunker) with version 1.8.49: https://plnkr.co/edit/XMWrXqUyGXghFw1A

andrewtelnov commented 3 years ago

@mikekidder I have fixed it in the library. Here is the related issue. bootstrap datepicker doesn't understand endDate: '2999-12-31'. The standard input with inputType: "date" works fine.

Thank you, Andrew

andrewtelnov commented 3 years ago

@mikekidder My fix in the library was incorrect. We have requested to set max date to '2999-31-12' by default. I added a work-around for bootstrap date picker since it works incorrectly for this max date.

Thank you, Andrew