ariadne_view_components 0.0.86.7 → 0.0.86.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/app/components/ariadne/form/toggle/component.rb +5 -3
- data/lib/ariadne/view_components/version.rb +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: c4c4e1c01355e1029dfd73a5d99e59584de225da37e09193b1ce4c2f0ebe066f
|
4
|
+
data.tar.gz: a7c816e8a5af436dc47e5fe144b37387b24bcc71c6e0eb15230911da6dbaca79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1da3beafdadeb60d8fc0694a0643550f607ea4ba4b4c75df0da0edb2f11f5676ea15844b454eb71443d1bd986e51473a692247af0a1f1760d317649c9e48a9ba
|
7
|
+
data.tar.gz: 65314736b356d78f9e5ce2d7b4cf4c56685f036053903efb4ba4f1e2a317175141234293adbc97c5ef08a0dd8b37ead403129f2ea4537a9415c489dc1415ec2a
|
data/CHANGELOG.md
CHANGED
@@ -30,11 +30,13 @@ module Ariadne
|
|
30
30
|
end
|
31
31
|
|
32
32
|
html_attrs[:data] ||= {}
|
33
|
+
added_controller = html_attrs[:data].delete(:controller) || ""
|
34
|
+
added_action = html_attrs[:data].delete(:action) || ""
|
33
35
|
html_attrs[:data] = {
|
34
|
-
controller: "#{stimulus_name} #{
|
36
|
+
controller: "#{stimulus_name} #{added_controller}",
|
35
37
|
"#{stimulus_name}-target": "toggle",
|
36
|
-
action: "click->#{stimulus_name}#toggle #{
|
37
|
-
}
|
38
|
+
action: "click->#{stimulus_name}#toggle #{added_action}",
|
39
|
+
}.merge(html_attrs[:data])
|
38
40
|
end
|
39
41
|
|
40
42
|
def before_render
|