Commit 3efd79f
Add generic controller for closing details on outside click
Implemented a new Stimulus controller for `<details>` elements
and applied it to the address form.
This generic controller leverages the `useClickOutside` hook from
`stimulus-use` to automatically close the `<details>` when a
click is detected outside its boundaries.
Co-Authored-By: Elia Schito <[email protected]>1 parent 8b56fef commit 3efd79f
File tree
2 files changed
+13
-1
lines changed- admin/app
- components/solidus_admin/orders/show/address
- javascript/solidus_admin/controllers
2 files changed
+13
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments