ariadne_view_components 0.0.86.8 → 0.0.86.9
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 +3 -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: 34b651779a45aa19177c9f4b531bee68fc395fa1c3d6cf4c313523409478b7a8
|
4
|
+
data.tar.gz: 4364f8b536bdd7773b3548cce0c0036cad93ef86cce1d18cd142985972c710db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cabf846c3ce0f9a337dea2d2a793ab599469f7a1139ab75e6fc00800ac43a478e286cc07ea2a0ac139a3b3f2de5167aa82976e01bd15b80044a5fa6bcfce0b8
|
7
|
+
data.tar.gz: 5b20d8acdaf5a5a34838acd3feb687dcdf5acf37bbd68ef4b4fa29d744af268fea1e310fc9e113bb3bf27e9bbfef3709e1c82811633112ec6a684c104ed60bbc
|
data/CHANGELOG.md
CHANGED
@@ -30,13 +30,13 @@ module Ariadne
|
|
30
30
|
end
|
31
31
|
|
32
32
|
html_attrs[:data] ||= {}
|
33
|
-
added_controller = html_attrs[:data]
|
34
|
-
added_action = html_attrs[:data]
|
33
|
+
added_controller = html_attrs[:data][:controller] || ""
|
34
|
+
added_action = html_attrs[:data][:action] || ""
|
35
35
|
html_attrs[:data] = {
|
36
36
|
controller: "#{stimulus_name} #{added_controller}",
|
37
37
|
"#{stimulus_name}-target": "toggle",
|
38
38
|
action: "click->#{stimulus_name}#toggle #{added_action}",
|
39
|
-
}.merge(html_attrs[:data])
|
39
|
+
}.merge(html_attrs[:data].except(:controller, :action))
|
40
40
|
end
|
41
41
|
|
42
42
|
def before_render
|