Skip to content

Releases: wire-elements/modal

v1.0.1

06 Sep 20:01
0fe7036
Compare
Choose a tag to compare

v1.0.0

05 Jul 09:40
Compare
Choose a tag to compare

v1.0.0 stable release 🚀

Breaking changes to take into account:

The @livewireUIScripts has been removed.

Any required Javascript will be loaded inline. If you want to include the Javascript in your bundler like Webpack you can use the config to disable Javascript and require the necessary Javascript require('vendor/livewire-ui/modal/resources/js/modal');

The package namespace has changed to livewire-ui-modal

If you published the modal view make sure to make the required changes.

0.1.7

19 Jun 12:59
Compare
Choose a tag to compare

The setActiveModalComponent is sometimes called multiple times resulting in issues with the component history log and could result in errors. This release prevents an already active modal component to be set active (while it is already active).

0.1.6

08 Jun 12:29
Compare
Choose a tag to compare
  • Add autofocus support
  • Add option to change escape behaviour
  • Add option to emit closed event

By default, closing a modal by pressing the escape key will force close all modals. If you want to disable this behavior to, for example, allow pressing escape to show a previous modal, you can overwrite the static closeModalOnEscapeIsForceful method and have it return false.

public static function closeModalOnEscapeIsForceful(): bool
{
    return false;
}

When a modal is closed, you can optionally enable a modalClosed event to be fired. This event will be fired on a call to closeModal, when the escape button is pressed, or when you click outside the modal. The name of the closed component will be provided as a parameter;

public static function dispatchCloseEvent(): bool
{
    return true;
}

0.1.5

04 May 15:05
Compare
Choose a tag to compare

Add option to disable closing modal on click a away:

    public static function closeModalOnClickAway(): bool
    {
        return false;
    }

Change Alpine binding to prevent VueJS conflict 85acc51

0.1.4

29 Apr 14:53
Compare
Choose a tag to compare

Fixes #22

0.1.3

27 Apr 14:37
Compare
Choose a tag to compare
Configurable modal width + prevent close on escape

0.1.2

15 Apr 13:02
22e8e94
Compare
Choose a tag to compare

Allow emission of events with parameters and no target (22e8e94)

0.1.1

05 Apr 12:58
11788b3
Compare
Choose a tag to compare
Update composer.json

0.1.0

01 Apr 13:00
Compare
Choose a tag to compare
Initial commit