Bug fix for assignment of customProperties in the option template, now uses JSON.stringify()

This commit is contained in:
Jason Crossfield 2022-12-08 17:12:31 -05:00
parent 5dbea2825a
commit ff46b7c8a0
3 changed files with 3 additions and 3 deletions

View file

@ -4101,7 +4101,7 @@ var templates = {
disabled = _a.disabled;
var opt = new Option(label, value, false, active);
if (customProperties) {
opt.dataset.customProperties = "".concat(customProperties);
opt.dataset.customProperties = "".concat(JSON.stringify(customProperties));
}
opt.disabled = !!disabled;
return opt;

File diff suppressed because one or more lines are too long

View file

@ -321,7 +321,7 @@ const templates = {
const opt = new Option(label, value, false, active);
if (customProperties) {
opt.dataset.customProperties = `${customProperties}`;
opt.dataset.customProperties = `${JSON.stringify(customProperties)}`;
}
opt.disabled = !!disabled;