Skip to content

Commit

Permalink
Merge pull request #41 from g200kg/dev-select
Browse files Browse the repository at this point in the history
fix outline
  • Loading branch information
g200kg committed Jul 27, 2020
2 parents 35cfb85 + ed8d62e commit 792bc3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webaudio-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,18 @@ if(window.customElements){
this.elem.style.outline="none";
}
this.onfocus=()=>{
switch(this.outline){
switch(+this.outline){
case null:
case 0:
console.log("0")
this.elem.style.outline="none";
break;
case 1:
console.log("1")
this.elem.style.outline="1px solid #444";
break;
default:
console.log("E")
this.elem.style.outline=this.outline;
}
}
Expand Down

0 comments on commit 792bc3b

Please sign in to comment.