Skip to content

Commit 13eb9cf

Browse files
committed
Fix for incorrectly visible (and enabled) 2D transition/blending style options
- see wled#5498
1 parent 61bb98c commit 13eb9cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wled00/data/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,10 +679,10 @@ function parseInfo(i) {
679679
isM = mw>0 && mh>0;
680680
if (!isM) {
681681
gId("filter2D").classList.add('hide');
682-
qSA('#bs option[data-type="2D"]').forEach((o,i)=>{o.style.display='none';});
682+
qSA('#bs option[data-type="2D"]').forEach((o,i)=>{o.style.display='none';o.hidden=true;o.disabled=true;});
683683
} else {
684684
gId("filter2D").classList.remove('hide');
685-
qSA('#bs option[data-type="2D"]').forEach((o,i)=>{o.style.display='';});
685+
qSA('#bs option[data-type="2D"]').forEach((o,i)=>{o.style.display='';o.hidden=false;o.disabled=false;});
686686
}
687687
gId("updBt").style.display = (i.opt & 1) ? '':'none';
688688
}

0 commit comments

Comments
 (0)