ultimate_turbo_modal 3.1.0 → 3.1.1
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 +4 -0
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/ultimate_turbo_modal/base.rb +9 -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: a3e19370968d364e444c838ab19a43d7173d369377bb78b865a80c1e46a58c84
|
|
4
|
+
data.tar.gz: cdd528a7a2f02e3e6149351281b49ae27115cc1be15980b8cd3330fc3dcf8ed7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b231f3e961b42f3be9f165399ad0de347330c7d3b58aef25c3a6dcaf93f35b2fc2b73692994838f9a3c418242c02a8e1a2ea68e1693657170085a4b4cfcb360
|
|
7
|
+
data.tar.gz: e6356a395c4dd286696479cc0f3dca969e6310aee71181792b7ef2d53ff95344cc812985fb25121ed6c2ae8702ce831e69e45609d0a64a5165d9b060bdd90343
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [3.1.1] - 2026-05-01
|
|
4
|
+
|
|
5
|
+
- Fixed validation errors and multi-step forms inside a stacked modal closing the modal instead of updating in place.
|
|
6
|
+
|
|
3
7
|
## [3.1.0] - 2026-05-01
|
|
4
8
|
|
|
5
9
|
- Tweaked vertically centering of modals on desktop (≥640px) with a slight optical-center bias, instead of anchoring them near the top.
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.1.
|
|
1
|
+
3.1.1
|
|
@@ -156,7 +156,15 @@ class UltimateTurboModal::Base < Phlex::HTML
|
|
|
156
156
|
|
|
157
157
|
def drawer? = !!@drawer
|
|
158
158
|
|
|
159
|
-
|
|
159
|
+
# A request is "stacked" when it targets the stacked-modal frame directly
|
|
160
|
+
# (`drawer-modal` — initial open from inside a drawer) or when it originates
|
|
161
|
+
# from inside an already-rendered stacked modal (`modal-inner-stacked` —
|
|
162
|
+
# validation re-renders, multi-step wizards, in-modal links). Both must
|
|
163
|
+
# render with the stacked frame ids so Turbo can find the requesting frame.
|
|
164
|
+
def stacked?
|
|
165
|
+
frame = request&.headers&.[]("Turbo-Frame")
|
|
166
|
+
frame == "drawer-modal" || frame == "modal-inner-stacked"
|
|
167
|
+
end
|
|
160
168
|
|
|
161
169
|
def dialog_id = stacked? ? "modal-container-stacked" : "modal-container"
|
|
162
170
|
|