recourse 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/app/views/recourses/_combobox.html.erb +5 -0
- data/lib/recourse/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: 7a8357464f10172dc33f248b3a183bf9e63a51b1b4c78c5fab1ae96b68a6aa39
|
|
4
|
+
data.tar.gz: 88cecc89ba2c80ee81fb6e3c58af0400708fc9aa6b980b8e40a4f9611e7ed341
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e06ac2ef9a8e5ffa475d6d3313422e2649483482dddf7449cdc1c6e8487f932521c3efb88c6a673f94e712ef3ba5bcbcf69bc2985af33cd4356999f0cf318095
|
|
7
|
+
data.tar.gz: 32647415aa6c438c9b1ca3837a2be956523e5867a71e224373e87d6cf75618100712f52161df64312c4d871fcd4f31a0dea2a825434214def63e49d88fa2ac51
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ For more information about changelogs, check [Keep a Changelog](http://keepachan
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## 5.0.1 - 2026-09-14
|
|
11
|
+
|
|
12
|
+
* [Fix] A required combobox starts empty rather than on its first option
|
|
13
|
+
|
|
14
|
+
A `<select>` left to itself picks its first option, so the toggle read a choice nobody had
|
|
15
|
+
made and a form could be sent with it. A single select without an unset option now leads
|
|
16
|
+
with a placeholder nobody can pick, so the box says `Select…` until a reader chooses.
|
|
17
|
+
|
|
10
18
|
## 5.0.0 - 2026-09-14
|
|
11
19
|
|
|
12
20
|
* [Breaking change] Every page is styled and scripted by `https://design.houseaccount.com`, and nothing is served by the gem
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
offers no way to leave itself empty. -%>
|
|
16
16
|
<% if none -%>
|
|
17
17
|
<%= tag.option none, value: '' %>
|
|
18
|
+
<% elsif !multiple -%>
|
|
19
|
+
<%# A select left to itself picks its first option, which read as a choice nobody made.
|
|
20
|
+
A placeholder nobody can pick keeps the box empty until a reader chooses, and
|
|
21
|
+
`required` then asks for one. -%>
|
|
22
|
+
<%= tag.option placeholder, value: '', disabled: true, selected: selected.empty?, hidden: true %>
|
|
18
23
|
<% end -%>
|
|
19
24
|
<%# Records are cached on the relation, and a list of words is not worth caching:
|
|
20
25
|
an enum has a dozen of them and they are already in memory. Nor is a table with
|
data/lib/recourse/version.rb
CHANGED