Skip to content

Commit

Permalink
Merge pull request #4 from episphere/issue-1069
Browse files Browse the repository at this point in the history
Grid Display-If Bug Fix
  • Loading branch information
anthonypetersen authored Jul 26, 2024
2 parents 1259daa + 7d01a17 commit c8bc385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion questionnaire.js
Original file line number Diff line number Diff line change
Expand Up @@ -1513,7 +1513,7 @@ export function evaluateCondition(txt) {
if (typeof x === "string") {
let element = document.getElementById(x);
if (element != null) {
if (element.hasAttribute('grid') && (element.type === "radio" || element.type === "checkbox")) {
if (element.dataset.grid && (element.type === "radio" || element.type === "checkbox")) {
//for displayif conditions with grid elements
x = element.checked ? 1 : 0;
}
Expand Down

0 comments on commit c8bc385

Please sign in to comment.