bezhanSalleh / filament-panel-switch

The Panel Switch Plugin for Filament offers a robust and customizable component for switching between panels in applications built with FilamentPHP.
MIT License
123 stars 21 forks source link

Fix: Modal Trigger Issue with Top Navigation Enabled #16

Closed andrewdwallo closed 1 year ago

andrewdwallo commented 1 year ago

This commit addresses a critical issue where modals were not properly triggering or opening when top navigation was enabled in the application. For some reason, when top navigation is enabled, the icon button which triggers the modal needed to be reinitialized using alpine's x-data attribute. Users experiencing difficulty in interacting with modals in this scenario should now find the functionality working as expected.

Additionally, I have implemented a sticky header for modals when in slide-over mode. This improves the design of the header in the slide-over.

Video

PanelSwitch

bezhanSalleh commented 1 year ago

Fixes #12 Fixes #14

Thanks mate! 🍻