It is better to avoid third party widget with lots of dependencies unless no other solution is available.
In my case, my yii-datepicker widget stopped working all of a sudden. When I checked the code, the coding is efficient and with no mistake I could find.
The culprit was a jQuery updation which happened when I downloaded another extension through composer. The bootstrap datepicker widget throws an error in jQuery 2.2x and it works fine with jQuery 2.1x.
Please be ready to solve yourselves these problems as the authors can any time stop supporting the third party extensions.