Skip to content

Commit

Permalink
Merge pull request #422 from cidgoh/multiselect-fix
Browse files Browse the repository at this point in the history
multiselect html p tag input fix
  • Loading branch information
ddooley authored Dec 5, 2023
2 parents b189159 + b7d2e11 commit bc704d1
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions lib/DataHarmonizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1196,11 +1196,7 @@ class DataHarmonizer {
}

$('#field-description-text').html(
`${
fields[col].title
}<select multiple class="multiselect" rows="15">${renderContent(
content
)}</select>`
`${fields[col].title}<select multiple class="multiselect" rows="15">${content}</select>`
);
$('#field-description-modal').modal('show');
$('#field-description-text .multiselect')
Expand All @@ -1213,15 +1209,13 @@ class DataHarmonizer {
let indentation = 12 + label.search(/\S/) * 8; // pixels
return `<div style="padding-left:${indentation}px" class="option ${
value === '' ? 'selectize-dropdown-emptyoptionlabel' : ''
}">${renderContent(escape(label))}</div>`;
}">${escape(label)}</div>`;
},
},
}) // must be rendered when html is visible
.on('change', function () {
let newValCsv = renderContent(
formatMultivaluedValue(
$('#field-description-text .multiselect').val()
)
let newValCsv = formatMultivaluedValue(
$('#field-description-text .multiselect').val()
);
self.setDataAtCell(row, col, newValCsv, 'thisChange');
});
Expand Down

0 comments on commit bc704d1

Please sign in to comment.