Skip to content

Commit

Permalink
Wrap the inputSet control in a span in the same way as custom control…
Browse files Browse the repository at this point in the history
…s to ensure CSS selectors are applied correctly
  • Loading branch information
lucasnetau committed Sep 11, 2023
1 parent 0f7a786 commit dda1a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default class Controls {
if (set.icon) {
label = `<span class="control-icon">${set.icon}</span>${label}`
}
const inputSet = m('li', label, {
const inputSet = m('li', m('span', label), {
className: `input-set-control input-set-${i}`,
})
inputSet.dataset.type = name
Expand Down

0 comments on commit dda1a1a

Please sign in to comment.