bullet_train 1.7.8 → 1.7.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/field-partials/dynamic-forms-dependent-fields.md +11 -7
- data/lib/bullet_train/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 218265892a79f3d9eeedf83b0b06612d8c85d87d08c0f5c6e9e1cf0bb5af5ed9
|
4
|
+
data.tar.gz: a44a684a235ec09762a865492b10f46aa7c531318464776d484b7bb632345670
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4ed19153316987cfbc790b90fc9f1315036effc6f2ea616e8a5ed62bdf4295f9d07013f3528d04835ec30018edf912fcf24caad3188a0e83587f087c01ba2a4
|
7
|
+
data.tar.gz: 487b16de9dd83d1cf3b8d45c6c2386ec81b356652133e1560254f9186d5df4929bb570887d5391b227a6f631f5e9dc0321f5c58520a74144d1d838c42a2f9bd0
|
@@ -53,11 +53,13 @@ To let our `:heard_from_other` field handle the `dependable:updated` event, we'l
|
|
53
53
|
<%= render 'shared/fields/text_field',
|
54
54
|
method: :heard_from_other,
|
55
55
|
id: form.field_id(:heard_from_other),
|
56
|
-
options: {
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
56
|
+
options: {
|
57
|
+
disabled: true,
|
58
|
+
data: {
|
59
|
+
controller: "field-availability",
|
60
|
+
action: "dependable:updated->field-availability#toggle",
|
61
|
+
field_availability_expected_value: "other"
|
62
|
+
}
|
61
63
|
}
|
62
64
|
%>
|
63
65
|
```
|
@@ -114,8 +116,10 @@ We'll move the conditional on the `disabled` property. And we'll also let the `d
|
|
114
116
|
|
115
117
|
<%= render 'shared/fields/text_field',
|
116
118
|
method: :heard_from_other,
|
117
|
-
options: {
|
118
|
-
|
119
|
+
options: {
|
120
|
+
disabled: form.object&.heard_from != "other",
|
121
|
+
data: {"#{dependent_fields_controller_name}-target": "field"}
|
122
|
+
}
|
119
123
|
%>
|
120
124
|
<% end %>
|
121
125
|
```
|
data/lib/bullet_train/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|