Skip to content

Commit

Permalink
conside alternative value for option
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyblasta committed Dec 5, 2024
1 parent 83329b8 commit 68b9d61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/editor/editform.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const createForm = function createForm(obj) {
el += `<input id="${id}-${index}-text" type="text" value="${textboxVal}"${maxLength} style="width: auto; padding:0; margin:0; line-height:1.3rem;" ${disable} autocomplete="off">`;
el += '<br>';
} else {
checked = val.includes(option.trim()) ? ' checked' : '';
checked = val.includes(value.trim()) ? ' checked' : '';
el += `<input id="${id}-${index}" type="checkbox" name="${name}" data-index="${index}" value="${value}"${checked}> ${option}<br>`;
}
});
Expand Down

0 comments on commit 68b9d61

Please sign in to comment.