@schukai/monster 3.51.3 → 3.51.4
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -64,7 +64,10 @@ function initOptionsFromAttributes(element, options, mapping = {}, prefix = "dat
|
|
64
64
|
value = mapping[optionName](value);
|
65
65
|
}
|
66
66
|
|
67
|
-
|
67
|
+
let optionValue = finder.getVia(optionName);
|
68
|
+
if (optionValue === null || optionValue === undefined) {
|
69
|
+
optionValue = value;
|
70
|
+
}
|
68
71
|
|
69
72
|
const typeOfOptionValue = typeof optionValue;
|
70
73
|
if (optionValue === null || optionValue === undefined) {
|
package/source/types/version.mjs
CHANGED
package/test/cases/monster.mjs
CHANGED