view_component_reflex 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6da4b2d9e532fefeb33b06d18081a1be6a281545a7716dc0650f2e5facd44d3
|
4
|
+
data.tar.gz: f267ea6850f2fd12250d19af6183ca4b48266b38c37d0486375efa11871ab391
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bfecb324ea02fc969beba3a393752d73881a6fd917e16bcbbc49a0082113c46c4a2a0c27e1c2f9a8eb501f6429b992a0eff4ce078cc32ebc87cec1f589f0612
|
7
|
+
data.tar.gz: 45b0510fea9923a7edc82eef3ade6d01459134627c9e505c0c92aadd2c16be05c11ab08aa9220e363d3ee79b8f73a9885138777f963b9e38bf4252178312a3f4
|
@@ -23,7 +23,8 @@ module ViewComponentReflex
|
|
23
23
|
cable_ready[channel.stream_name].morph(
|
24
24
|
selector: s,
|
25
25
|
html: html.inner_html,
|
26
|
-
children_only: true
|
26
|
+
children_only: true,
|
27
|
+
permanent_attribute_name: "data-reflex-permanent"
|
27
28
|
)
|
28
29
|
end
|
29
30
|
end
|
@@ -39,10 +40,12 @@ module ViewComponentReflex
|
|
39
40
|
element.dataset[:key]
|
40
41
|
end
|
41
42
|
end
|
43
|
+
document = Nokogiri::HTML(controller.render_component_to_string(component))
|
42
44
|
cable_ready[channel.stream_name].morph(
|
43
45
|
selector: selector,
|
44
|
-
children_only:
|
45
|
-
html:
|
46
|
+
children_only: true,
|
47
|
+
html: document.css(selector).inner_html,
|
48
|
+
permanent_attribute_name: "data-reflex-permanent"
|
46
49
|
)
|
47
50
|
end
|
48
51
|
|