hotwire_combobox 0.1.24 → 0.1.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/presenters/hotwire_combobox/component.rb +2 -2
- data/lib/hotwire_combobox/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: ed7d6d8db12168ce351163deb6c0a115ff0bcd4c48782c0100451e468973a734
|
4
|
+
data.tar.gz: eca9d97a02259ab886364ca4501c1b94e3945bbd4d101f7bf0905149ff216219
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 431f3651c5479d5f6a0ab164067f7192a75601f73dbc4ae14d85f7d7cfc52c5e70d544e63ad33bf594b722a8ffb8c6825bc29a6255e1d32bada70b4920bb2ad7
|
7
|
+
data.tar.gz: f0110e653d8fd260bcc7f942d0fba4609c840b179bcf3d12e0e576187d2ede18f053bca3a5cb28a18d43b3d753101bacdbf18db52bab381617a6468f0ddf03ff
|
@@ -164,8 +164,8 @@ class HotwireCombobox::Component
|
|
164
164
|
def prefilled_display
|
165
165
|
if async_src && associated_object
|
166
166
|
associated_object.to_combobox_display
|
167
|
-
elsif
|
168
|
-
options.find { |option| option.value ==
|
167
|
+
elsif hidden_field_value
|
168
|
+
options.find { |option| option.value == hidden_field_value }&.content
|
169
169
|
end
|
170
170
|
end
|
171
171
|
|