ultimate_turbo_modal 3.2.0 → 3.2.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 +5 -0
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/ultimate_turbo_modal/helpers/controller_helper.rb +3 -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: f0c59204e8c87cee87fc85083ef4147930a7a493b5d9c6a8ddf7e1ac76f04359
|
|
4
|
+
data.tar.gz: 92c975e4676ec8ae2ae953be97f6beea70d2aa3d90b6403564af08950710a058
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 918fac0dfe7519413443eac794e82b31d8014ecdbaae3279baeb0474fa00f2445b59c57f249ff35f7e5bcc0ab6c3dd6f91fecdaf3e30e34c78326b2d02e25082
|
|
7
|
+
data.tar.gz: 6cf8a3e810da824c8bb2cf6eb1f5c4fc9ef75671dbae67486289a927599c2c3984fa5d046fa2ac17562e78db63635145016bb4a0f1d46441b26e44c7b2d44b53
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [3.2.1] - 2026-05-07
|
|
4
|
+
|
|
5
|
+
- Fixed drawers closing abruptly when pressing Escape after dismissing a modal opened from inside the drawer.
|
|
6
|
+
- Fixed `inside_modal?` returning false when navigating between pages inside an open modal or drawer.
|
|
7
|
+
|
|
3
8
|
## [3.2.0] - 2026-05-05
|
|
4
9
|
|
|
5
10
|
- 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.
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.2.
|
|
1
|
+
3.2.1
|
|
@@ -4,8 +4,10 @@ module UltimateTurboModal::Helpers
|
|
|
4
4
|
module ControllerHelper
|
|
5
5
|
extend ActiveSupport::Concern
|
|
6
6
|
|
|
7
|
+
MODAL_FRAME_IDS = %w[modal modal-inner drawer-modal modal-inner-stacked].freeze
|
|
8
|
+
|
|
7
9
|
def inside_modal?
|
|
8
|
-
request.headers["Turbo-Frame"]
|
|
10
|
+
MODAL_FRAME_IDS.include?(request.headers["Turbo-Frame"])
|
|
9
11
|
end
|
|
10
12
|
|
|
11
13
|
included do
|