Livewire Ui Modal Versions Save

Livewire component that provides you with a modal that supports multiple child modals while maintaining state.

0.1.7

2 years ago

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

2 years ago
  • 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

3 years ago

Add option to disable closing modal on click a away:

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

Change Alpine binding to prevent VueJS conflict https://github.com/livewire-ui/modal/commit/85acc51047ca34a7b269939aff96e7abe665fcf1

0.1.4

3 years ago

Fixes #22

0.1.3

3 years ago

0.1.2

3 years ago

Allow emission of events with parameters and no target (https://github.com/livewire-ui/modal/commit/22e8e947a941ffe3e3cc23cdff460399d8673a7d)

0.1.1

3 years ago

0.1.0

3 years ago