@stimulus-library/mixins 1.6.0 → 1.7.0
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.
|
@@ -137,8 +137,8 @@ export function isElementDirty(element) {
|
|
|
137
137
|
export function restoreElementFromLoadValue(element) {
|
|
138
138
|
const cacheValue = element.getAttribute(CACHE_ATTR_NAME);
|
|
139
139
|
if (isElementCheckable(element)) {
|
|
140
|
-
element.
|
|
141
|
-
|
|
140
|
+
element.checked =
|
|
141
|
+
cacheValue == null ? element.defaultChecked : cacheValue == "true";
|
|
142
142
|
}
|
|
143
143
|
else if (isHTMLSelectElement(element)) {
|
|
144
144
|
if (cacheValue == null) {
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"ruby on rails",
|
|
10
10
|
"ruby-on-rails"
|
|
11
11
|
],
|
|
12
|
-
"version": "1.
|
|
12
|
+
"version": "1.7.0",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"author": {
|
|
15
15
|
"name": "Sub-Xaero",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@hotwired/stimulus": "^3.0.0",
|
|
40
|
-
"@stimulus-library/utilities": "^1.
|
|
40
|
+
"@stimulus-library/utilities": "^1.7.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/chai": "^5.0.1",
|
|
44
44
|
"@types/mocha": "^10.0.1",
|
|
45
|
-
"@types/node": "^25.
|
|
46
|
-
"@types/sinon": "^21.0.
|
|
45
|
+
"@types/node": "^25.5.2",
|
|
46
|
+
"@types/sinon": "^21.0.1",
|
|
47
47
|
"@types/sinon-chai": "^4.0.0",
|
|
48
48
|
"agadoo": "^3.0.0",
|
|
49
49
|
"chai": "^6.2.2",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"sinon-chai": "^4.0.0",
|
|
56
56
|
"standard-version": "^9.5.0",
|
|
57
57
|
"ts-node": "^10.9.2",
|
|
58
|
-
"typescript": "^
|
|
59
|
-
"vite": "^7.
|
|
58
|
+
"typescript": "^6.0.2",
|
|
59
|
+
"vite": "^7.3.2"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "b84f87789c5d0c5682bb90711c192a2750c843dc"
|
|
62
62
|
}
|