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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: abab0cbeca735ec4d81ea4ec8618cd490982bf176d7219e2838ee0b11495e295
|
|
4
|
+
data.tar.gz: c8dd9c21872cdefd14ccfb47a4b2e3395b534865d81f7b71605066589d3f2d70
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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")
|