Skip to content
Snippets Groups Projects
Verified Commit d55a04a3 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: case if value === null

parent 5399569f
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,10 @@ function initOptionsFromAttributes(element, options, mapping = {}, prefix = "dat
value = mapping[optionName](value);
}
const optionValue = finder.getVia(optionName);
let optionValue = finder.getVia(optionName);
if (optionValue === null || optionValue === undefined) {
optionValue = value;
}
const typeOfOptionValue = typeof optionValue;
if (optionValue === null || optionValue === undefined) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment