Releases: EinsCMS/eins-modal
Releases · EinsCMS/eins-modal
🚨 Hotfix - 2.2.2
🚨 Hotfix - 2.2.1
Fixed window.onload event attachment
EinsModal 2.2.0 🥳
-
✨ Initializes with window.onload
EinsModal now initializes all elements like buttons and modals withwindow.onload
, means after the DOM is rendered and ready.
The location of the script tag is no longer important.
EinsModal 2.1.0 🥳
-
✨ New EinsModal "plain" mode
-
EinsModal without any animations
If you want a smaller file size and don't need any animations you can now useeins-modal-plain
.
You can learn more on how to use EinsModal without animations here.
-
EinsModal 2.0.0 🥳
Changes from 1.1 to 2.0
-
🚨 Breaking Changes
Follow the instructions in Upgrade from 1.1 to 2.0, if you used version 1.1 before.
-
✨ New functionality
-
Multi-Modal-Functionality
Now you can open multiple Modals on top of each other without closing the current open one.
If you want to disable that functionality you can use themultiple
option. -
Queue
EinsModal now has a action queue build in.
That means it executes the close and open commands in order. -
Dialog
You can now open a new modal after closing one, without using any custom javascript! -
EinsModal object (NPM)
The EinsModal Object now provides many new handy methods! -
Global object
The Global Object now provides many new handy methods! -
Fill Scrollbar Gap
When EinsModal opens a modal, it disables the scroll-ability of the body.
That sometimes leads to not wanted flickering.
You can fix that by using the new fill-scrollbar-gap class.
-
-
⚙️ New Options
-
multiple
With option istrue
by default.
By setting it tofalse
you can disable theMulti-Modal-Functionality
.
multiple
documentation -
wait
With option isfalse
by default.
By setting it totrue
you can enforce that an open actions will wait until after a close action occurred.
wait
documentation
-
-
🌈 Enhancements
-
Mobile scrolling
If content within the modal is scrollable. It will be scrollable on mobile devices too!
-
🚨 Hotfix - 1.1.8
-
Fixed ModuleNotFoundError when using scss
🚨 Hotfix - 1.1.7
-
Fixed jump to top of modal when hiding scrollbar
🚨 Hotfix - 1.1.6
-
Fixed jump to previous scroll position if modal is scrollable and reopened
🚨 Hotfix - 1.1.5
-
Fixed bug where modal was partially not visible because of overflow
🚨 Hotfix - 1.1.4
-
Fixed bug with box sizing of close icon.
It has to be set to content-box or the icon will look weird.