hotwire_combobox 0.1.24 → 0.1.27

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: e221d9fd94697b8faa4987a7464ec3e0325df4c7afb5177252dc3ed5e84c1869
4
+ data.tar.gz: 900ea551c230017aeb81525eb07599463336fb33508d2b30a25b7eaf55b5983b
5
5
  SHA512:
6
- metadata.gz: de7669fe7f87e0457cf80075952cf76d5fa78265f63d39e5cf3c7a32ceea8534ceca721904d68e57192df38c704f27f1e3bcb0dfa9ae0f6bd6b5a3aee73a1c74
7
- data.tar.gz: b8d878fb537e0341405d8524ade323de820f013a9e0e4fc462bfbc726efa982ba0c25716c66917aa6e2ed1aa03fadfd2d81a6bed6bdce9c4e89ff5f2ffb3e9de
6
+ metadata.gz: 1bfb3c001fb07b9d5c40ed21b7229960e24830d598f0ae5e1baf4eda1c7d865e2b3418d57b955c702a6c3937be38cc74eb376b6d717a74955aba31854bd98581
7
+ data.tar.gz: e921c0714ef63f7bf32dd96257fdc3b08ccc963c6f962420c892b0afe4e4ad9f4efd94dccee9c41a8ad00e1cc8d9cd35b5748e776dcd136bb9134d7b13d722f8
data/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
  > [!IMPORTANT]
11
- > We need your help to finalize this gem's first major release. Please use it in your apps and report any issues.
11
+ > HotwireCombobox is at an early stage of development. It's nearing a beta release, but the API might change and bugs are expected. Please continue to use the library and report any issues in the GitHub repo.
12
12
 
13
13
  ## Installation
14
14
 
@@ -18,6 +18,15 @@ Add this line to your application's Gemfile and run `bundle install`:
18
18
  gem "hotwire_combobox"
19
19
  ```
20
20
 
21
+ ## Docs
22
+
23
+ <p align="center">
24
+ <img src="docs/assets/images/docs-preview.png" height=500>
25
+ </p>
26
+
27
+ Visit [the docs site](https://hotwirecombobox.com/) for a demo and detailed documentation.
28
+ If the site is down, you can run the docs locally by cloning [the docs repo](https://github.com/josefarias/hotwire_combobox_docs).
29
+
21
30
  ## Contributing
22
31
 
23
32
  Please read [CONTRIBUTING.md](./CONTRIBUTING.md).
@@ -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.27"
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.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Farias