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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d160dff229773bd862eb24c774a64aaac87c073b5fde920261502c624f17d372
4
- data.tar.gz: d500cd966e2faf93f6955ef09b8c6713ba54c1be081408d040d7367307dcb31e
3
+ metadata.gz: 7a8357464f10172dc33f248b3a183bf9e63a51b1b4c78c5fab1ae96b68a6aa39
4
+ data.tar.gz: 88cecc89ba2c80ee81fb6e3c58af0400708fc9aa6b980b8e40a4f9611e7ed341
5
5
  SHA512:
6
- metadata.gz: 8408d91069b9fdbff6fc8136e73ff02507e1be63cd9a1e4b3dc38654bb42f9c85ab21280a540eaba613b85fa3ac16dc32e08ca2f5a0687081923323870b8542b
7
- data.tar.gz: dacc5528b67ec9ca0118c03ed8005392babaedbf69aa70d1cefb91cc697e188ebae147da37d0854e372cf56c3a5e47a04235f6c56c751c00f675881f15b19128
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
@@ -1,4 +1,4 @@
1
1
  module Recourse
2
2
  # Version of the gem, read by the gemspec and by hosts checking compatibility.
3
- VERSION = '5.0.0'
3
+ VERSION = '5.0.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recourse
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob