shadcn_view_component 0.3.5 → 0.3.6

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: a7d4fe8f2ea1c530614c51fb68564e0db7bee65fb5891b7daf07b06c43af3173
4
- data.tar.gz: 6c2c085acc0c4c48ca89fa20b937421f5153909c41ea37022a8017d1f0105293
3
+ metadata.gz: abab0cbeca735ec4d81ea4ec8618cd490982bf176d7219e2838ee0b11495e295
4
+ data.tar.gz: c8dd9c21872cdefd14ccfb47a4b2e3395b534865d81f7b71605066589d3f2d70
5
5
  SHA512:
6
- metadata.gz: ae08a46cf261c82bba7c89345ffb0ef3dbdc61b8a6f72cdf695f00fcdb73d4aa81a3a7ed75c92d8c4136b7bf92a548185f5225be491087371707bbca60c58c1d
7
- data.tar.gz: 2788cdbd0281325298f8325de8447eb45d67334dc2c8bca52716539e8275188f880ff05d74e32347d1fdd2cd683da43c5225fda54919187180f91d51020b4eba
6
+ metadata.gz: ac5ffb0dad2a6abbc6a32b407d4c02492cf9b0af52029f0ba809190a2a3eba373b666a82b2e2cf90c6fcd7ab8aa9875f1e602076906362ae3f01d9076196353c
7
+ data.tar.gz: 47d4681c2a1daa872327894f4ae4d7f0bf35710c9984ab2cfb0b3507519a5033b8f2357d5a29b6c56a0ec4ee750058b45a2a2bb71e98cff0587dce08c6dceb12
data/CHANGELOG.md CHANGED
@@ -4,6 +4,20 @@ All notable changes to this project are documented here. The format follows
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project uses
5
5
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.3.6] — 2026-11-02
8
+
9
+ ### Fixed
10
+
11
+ - A `Combobox` opens again after a click outside has closed it. The click
12
+ dismisses the floating layer directly, which runs the controller's
13
+ `closed()` but not `close()`, and only `close()` reset `openValue`: the
14
+ controller still thought the panel open, and the next click on the field
15
+ returned early from `open()`. `closed()`, where every way of closing ends,
16
+ now resets it. Single and chips mode alike.
17
+
18
+ `spec/system/combobox_spec.rb` closes the panel with a click outside, in
19
+ both modes, and opens it again from the field.
20
+
7
21
  ## [0.3.5] — 2026-11-02
8
22
 
9
23
  ### Fixed
@@ -109,7 +109,12 @@ export default class extends Controller {
109
109
  this.highlight(this.chosenItem || this.visibleItems[0])
110
110
  }
111
111
 
112
+ // Every way of closing ends here, including the ones that never pass through
113
+ // `close()` — a click outside or Escape dismiss the layer directly. Left true,
114
+ // `openValue` made the next `open()` return early and the field stopped
115
+ // opening the panel.
112
116
  closed() {
117
+ this.openValue = false
113
118
  this.contentTarget.dataset.closed = ""
114
119
  delete this.contentTarget.dataset.open
115
120
  this.searchTarget.setAttribute("aria-expanded", "false")
@@ -1,3 +1,3 @@
1
1
  module ShadcnViewComponent
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shadcn_view_component
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - sirion1987