Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pin flowbite due to a bug related to flowbite-datepicker
Pin flowbite to v2.3.0 (actually, <2.4.0). flowbite 2.4.0 changed the way it imported flowbite-datepicker: - removed `src/plugins` and the related webpack configuration that restricted what was actually included from flowbite-datepicker in the final flowbite.min.js; - now includes the entire flowbite-datepicker package in the final flowbite.min.js; flowbite-datepicker has (always had) an issue that causes an SSR "document is not defined" error due to [lib/js/jdom.js](https://github.com/themesberg/flowbite-datepicker/blob/a343785aa01c7671f891cacc491040e238c4acc5/js/lib/dom.js#L1): ```javascript var range = document.createRange(); ``` This issue can be easily resolved within flowbite-datepicker by changing the line to: ```javascript var range = (typeof document !== 'undefined' && document.createRange()); ``` Reported: - flowbite: [issue 950](themesberg/flowbite#950); - flowbite-datepicker: added a [comment](themesberg/flowbite-datepicker#41 (comment)) to an existing, related issue;
- Loading branch information