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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1878c95bed7f503558cad0b607a93745c8049c50bcf0217ca34e45b74c88cae7
4
- data.tar.gz: 1f04aea58b60cce2ebaf146be417cc58ab97a6991e78f0ba76f02463e4866b2f
3
+ metadata.gz: ed7d6d8db12168ce351163deb6c0a115ff0bcd4c48782c0100451e468973a734
4
+ data.tar.gz: eca9d97a02259ab886364ca4501c1b94e3945bbd4d101f7bf0905149ff216219
5
5
  SHA512:
6
- metadata.gz: de7669fe7f87e0457cf80075952cf76d5fa78265f63d39e5cf3c7a32ceea8534ceca721904d68e57192df38c704f27f1e3bcb0dfa9ae0f6bd6b5a3aee73a1c74
7
- data.tar.gz: b8d878fb537e0341405d8524ade323de820f013a9e0e4fc462bfbc726efa982ba0c25716c66917aa6e2ed1aa03fadfd2d81a6bed6bdce9c4e89ff5f2ffb3e9de
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 value
168
- options.find { |option| option.value == value }&.content
167
+ elsif hidden_field_value
168
+ options.find { |option| option.value == hidden_field_value }&.content
169
169
  end
170
170
  end
171
171
 
@@ -1,3 +1,3 @@
1
1
  module HotwireCombobox
2
- VERSION = "0.1.24"
2
+ VERSION = "0.1.25"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hotwire_combobox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.24
4
+ version: 0.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Farias