Skip to content
Merged
Changes from all commits
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
Only call createRadio from select() if the element is a valid rad…
…io parent
  • Loading branch information
lindapaiste committed Mar 9, 2024
commit edf11fb5cdd74710dcd42caf3eba2bc71dac6209
3 changes: 2 additions & 1 deletion src/dom/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ p5.prototype._wrapElement = function (elt) {
children.length > 0 &&
children.every(function (c) {
return c.tagName === 'INPUT' || c.tagName === 'LABEL';
})
}) &&
(elt.tagName === 'DIV' || elt.tagName === 'SPAN')
) {
return this.createRadio(new p5.Element(elt, this));
} else {
Expand Down