ultimate_turbo_modal 3.1.0 → 3.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e94fa20d1e6e7f5cf6939cb0a346af7159673c25dc287c88eaf58b08f65aab8c
4
- data.tar.gz: 95a8f4beb5bbe52a39bca43a905e2e3bb2723d21e49e719896a318cf6302fcc0
3
+ metadata.gz: c4d5ac23c5a9f60d8106bbbc0298d5c9077adf2fff733d650c69b64cfca43fc0
4
+ data.tar.gz: c49fce6b629d85895271d5ed1feca395ffeb715652269705bab0575763323ebe
5
5
  SHA512:
6
- metadata.gz: b3acb970be04442953aff94efbbf9f422c36d979a9d54993b697074b853ed2fb801f73d963f82dd7523c93f65728f05a646642398b6531a41a197bb10c98de98
7
- data.tar.gz: 52e151ca88edc805d9d7d450c9a14ca09d58b7b3bb6ffedbdb40d59b5ea43cd60e4da12d0af70cb5a1570b5479f41601ff06c9d909747374603cd73e7a2761a3
6
+ metadata.gz: f8d81256366eb343f6c67806ff635a818fe9660d288189f93ed37d21f03e10252f346578b50cdab320a62fc956f33ac32cd4c2fbbaa0d88bc0cd27cc8ddc1ef3
7
+ data.tar.gz: dd4ad52607db65e05ee7cdd9b2201a6d3190c2217d78ddf88391fa79040d9008eb4e20b090b4997855fc7c53e0a36327c2836af83349973b921dced7e41d2e47
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [3.1.2] - 2026-05-01
4
+
5
+ - Fixed page content shifting right when a modal or drawer opens.
6
+
7
+ ## [3.1.1] - 2026-05-01
8
+
9
+ - Fixed validation errors and multi-step forms inside a stacked modal closing the modal instead of updating in place.
10
+
3
11
  ## [3.1.0] - 2026-05-01
4
12
 
5
13
  - 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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ultimate_turbo_modal (3.1.0)
4
+ ultimate_turbo_modal (3.1.2)
5
5
  actionpack (>= 8.0)
6
6
  activesupport (>= 8.0)
7
7
  phlex-rails (>= 2.0)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.0
1
+ 3.1.2
@@ -156,7 +156,15 @@ class UltimateTurboModal::Base < Phlex::HTML
156
156
 
157
157
  def drawer? = !!@drawer
158
158
 
159
- def stacked? = request&.headers&.[]("Turbo-Frame") == "drawer-modal"
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultimate_turbo_modal
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carl Mercier