@iyulab/components 1.27.0 → 1.27.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.
- package/CHANGELOG.md +9 -0
- package/dist/components/input/UInput.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.27.1] - 2026-08-11
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **`u-input[clearable]`'s built-in clear button now dispatches `change`**, matching the
|
|
8
|
+
existing contract on `u-select` and `u-date-picker`. Previously, clicking the clear icon
|
|
9
|
+
emptied the value visually but fired no event, so consumers binding to `change` (e.g. a
|
|
10
|
+
filter bound to `.value`/`@input`) never saw the reset.
|
|
11
|
+
|
|
3
12
|
## [1.27.0] - 2026-08-08
|
|
4
13
|
|
|
5
14
|
### Added
|
|
@@ -81,6 +81,10 @@ var UInput = class UInput extends UFormControlElement {
|
|
|
81
81
|
this.handleClearButtonClick = (e) => {
|
|
82
82
|
e.stopImmediatePropagation();
|
|
83
83
|
this.reset();
|
|
84
|
+
this.dispatchEvent(new Event("change", {
|
|
85
|
+
bubbles: true,
|
|
86
|
+
composed: true
|
|
87
|
+
}));
|
|
84
88
|
this.focus();
|
|
85
89
|
};
|
|
86
90
|
this.handleOptionClick = (e) => {
|