Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
minor linting changes
  • Loading branch information
reejuBhattacharya committed Feb 17, 2022
commit 9499111266e35e29261f90e850dfbb1f372ec639
4 changes: 2 additions & 2 deletions src/dom/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -955,14 +955,14 @@ p5.prototype.createRadio = function() {
// forEach loop to uncheck all radio buttons before
// setting any one as checked.
self._getOptionsArray().forEach(option => {
option.removeAttribute('checked');
option.checked = false;
option.removeAttribute('checked');
});

for (const option of self._getOptionsArray()) {
if (option.value === value) {
option.checked = true;
option.setAttribute('checked', true);
option.checked = true;
result = option;
}
}
Expand Down