You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: usage/ui.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -269,6 +269,13 @@ To use the Livewire modals, use the `ARKEcosystem\UserInterface\Http\Livewire\Co
269
269
270
270
**Important**: If you need to use a different variable to close the modal, or you can't make use of the trait for a reason, make sure to emit the `modalClosed` event as that is required for proper handling of the modals on the frontend! If you fail to emit this event, the browser window will not be scrollable after the modal disappears.
271
271
272
+
You can disable the focus trap by passing a parameter in the second argument:
**Important**: for the modals to work properly, they expect a `nav` element inside a `header` element to be used for the header component. If you use the navbar from the UI lib (see `navbar.blade.php`) these elements are already used, but for custom navbars you may need to make adjustments.
@@ -347,6 +354,19 @@ import Modal from "@ui/js/modal";
347
354
window.Modal= Modal;
348
355
```
349
356
357
+
You can disable the focus trap by passing a parameter in the third argument:
0 commit comments