Skip to content

Commit

Permalink
Use classList.push in LED tmplit
Browse files Browse the repository at this point in the history
  • Loading branch information
bishop-varnell committed Jan 26, 2024
1 parent b4dde5b commit 5b3536d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tmplits/tmplits-led/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ export function TmplitLed(context, args) {

let label = ''
if (context[0]){
classList = classList.concat(['input-group', 'form-control', 'label-led' ])
classList.push(['input-group', 'form-control', 'label-led' ])
label = `<div class='led-label' style='${labelStyle}' >${finalResult}</div>`
} else {
classList = classList.concat(['tmplit-led-unlabled-container'])
classList.push(['tmplit-led-unlabled-container'])
}

// add the led class to the class list
Expand Down

0 comments on commit 5b3536d

Please sign in to comment.