flowbite
flowbite copied to clipboard
Fix dist/flowbite.js to not use arrow function
Describe the bug On IE11 the dropdown does not work because of the use of arrow function.
To Reproduce Steps to reproduce the behavior:
- Go to IE11 https://flowbite.com/docs/components/dropdowns/
- Open web console
- See error
Expected behavior Dropdown list should appear
Screenshot

Desktop (please complete the following information):
- OS: Windows
- Browser IE11
- Version 1.4.5
Additional context
On my project I updated the first line in flowbite.js
/******/ (() => { // webpackBootstrap
with
/******/ (function() { // webpackBootstrap
The main goal for this is to have IE11 support.
I am not sure if the source files have support for IE11 ... or if the projects even want to support IE11.
For webpack.config.js, a quick fix is to use:
module.exports = {
target: ["web", "es5"]
}
Hey @ioanacristinamarinescu @adiroiban,
I'll look into this for the next version. Thank you!
@adiroiban: you can open a PR if you want to and I'll take a look at it.
Sure. I will create the PR.
PR https://github.com/themesberg/flowbite/pull/163
Many thanks for this nice project :)
I'll make this PR a candidate for the 1.5 version if our tests go through. Thanks!
Hey peeps,
The arrow function is no longer used for the dist files as of v1.6.0.
Please check out this resource for confirmation:
https://unpkg.com/[email protected]/dist/flowbite.min.js
Cheers, Zoltan