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 +4 -4
- data/README.md +10 -1
- 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: e221d9fd94697b8faa4987a7464ec3e0325df4c7afb5177252dc3ed5e84c1869
|
4
|
+
data.tar.gz: 900ea551c230017aeb81525eb07599463336fb33508d2b30a25b7eaf55b5983b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
>
|
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
|
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
|
|