ultimate_turbo_modal 3.1.2 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +3 -7
- data/VERSION +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 34e3efd561fcd9f694e52a040502a1f045beb16ef982ac0cc78c98e7aa48cbab
|
|
4
|
+
data.tar.gz: c090cf48ba8f4af707369747a008897da3b8678b136fb5c92b23e90d3f78472e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 23c8b90eb4df8e7482b35b1619f353901f8d11405f9039f57d3bb512d8e7aefb489814e8169b06e3fb33ec2ecc7dac41c83a00c3154ec0395e8b53e3fc1ea393
|
|
7
|
+
data.tar.gz: 8998b6858873bd44b0f2aa18e3f9a82642a9c71a44402e7ef29a2ba0d4107908ea5c4f4e951c3c1dd16a098aef03993acf21b4432ff5acbfe109c0a2bde6279c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [3.2.0] - 2026-05-05
|
|
4
|
+
|
|
5
|
+
- Links and forms inside a drawer can now use `data-turbo-frame="modal"` to open a stacked modal — the same partial works inside or outside a drawer with no changes.
|
|
6
|
+
- Fixed scroll-lock not releasing after a same-page morph reconnected the modal controller, which could leave the page padded and right-anchored fixed elements offset until refresh.
|
|
7
|
+
|
|
3
8
|
## [3.1.2] - 2026-05-01
|
|
4
9
|
|
|
5
10
|
- Fixed page content shifting right when a modal or drawer opens.
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -205,28 +205,24 @@ Link to it the same way as a modal:
|
|
|
205
205
|
|
|
206
206
|
## Opening a Modal from a Drawer
|
|
207
207
|
|
|
208
|
-
You
|
|
209
|
-
|
|
210
|
-
Inside any drawer, link to a modal action with `data-turbo-frame="drawer-modal"`:
|
|
208
|
+
You don't need to do anything special. Use `data-turbo-frame="modal"` like you would anywhere else, and UTMR handles the rest:
|
|
211
209
|
|
|
212
210
|
```erb
|
|
213
211
|
<%= drawer(title: "Notifications") do %>
|
|
214
212
|
<p>Activity list here…</p>
|
|
215
213
|
<%= link_to "Edit preferences",
|
|
216
214
|
edit_preferences_path,
|
|
217
|
-
data: { turbo_frame: "
|
|
215
|
+
data: { turbo_frame: "modal" } %>
|
|
218
216
|
<% end %>
|
|
219
217
|
```
|
|
220
218
|
|
|
221
|
-
The destination is rendered with the same `modal()` helper you use elsewhere:
|
|
222
|
-
|
|
223
219
|
```erb
|
|
224
220
|
<%= modal(title: "Notification preferences") do %>
|
|
225
221
|
<p>Form here…</p>
|
|
226
222
|
<% end %>
|
|
227
223
|
```
|
|
228
224
|
|
|
229
|
-
The
|
|
225
|
+
The same partial works inside a drawer or out — outside, it opens a regular modal; inside, it stacks on top of the drawer.
|
|
230
226
|
|
|
231
227
|
### Behavior
|
|
232
228
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.2.0
|