@thi.ng/rdom 1.7.3 → 1.7.4
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 -1
- package/dom.js +3 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-09-
|
|
3
|
+
- **Last updated**: 2024-09-22T07:46:58Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -9,6 +9,14 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [1.7.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.7.4) (2024-09-22)
|
|
13
|
+
|
|
14
|
+
#### 🩹 Bug fixes
|
|
15
|
+
|
|
16
|
+
- further fix __updateValueAttrib() ([378441c](https://github.com/thi-ng/umbrella/commit/378441c))
|
|
17
|
+
- also skip cursor pos update for readonly elements
|
|
18
|
+
- fix textarea handling
|
|
19
|
+
|
|
12
20
|
### [1.7.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.7.3) (2024-09-19)
|
|
13
21
|
|
|
14
22
|
#### 🩹 Bug fixes
|
package/dom.js
CHANGED
|
@@ -156,7 +156,8 @@ const __setAttrib = (el, id, val, attribs) => {
|
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
158
|
const __updateValueAttrib = (el, value) => {
|
|
159
|
-
|
|
159
|
+
const type = el instanceof HTMLTextAreaElement ? "text" : el.type;
|
|
160
|
+
switch (type) {
|
|
160
161
|
case "text":
|
|
161
162
|
case "textarea":
|
|
162
163
|
case "password":
|
|
@@ -168,7 +169,7 @@ const __updateValueAttrib = (el, value) => {
|
|
|
168
169
|
const start = el.selectionStart;
|
|
169
170
|
const end = el.selectionEnd;
|
|
170
171
|
el.value = value;
|
|
171
|
-
!el.disabled && el.setSelectionRange(start, end);
|
|
172
|
+
!(el.disabled || el.readOnly) && el.setSelectionRange(start, end);
|
|
172
173
|
break;
|
|
173
174
|
}
|
|
174
175
|
default:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/rdom",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"description": "Lightweight, reactive, VDOM-less UI/DOM components with async lifecycle and @thi.ng/hiccup compatible",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -146,5 +146,5 @@
|
|
|
146
146
|
],
|
|
147
147
|
"year": 2020
|
|
148
148
|
},
|
|
149
|
-
"gitHead": "
|
|
149
|
+
"gitHead": "b6219c3ce0814b1b6e859c8c12616389e64952f2\n"
|
|
150
150
|
}
|