File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const Switch = new (function() {
2323
2424 this . onClick = ( evt ) => {
2525 let el = evt . target ;
26- const id = el . id ;
26+ const id = el . id . split ( '-' ) [ 0 ] ;
2727 const switchEl = el . closest ( '[role="switch"]' ) ;
2828 let ariaDescribedBy ;
2929 let isChecked ;
@@ -59,4 +59,4 @@ const Switch = new (function() {
5959 ) ;
6060 }
6161 }
62- } )
62+ } )
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const Switch = new function () {
2323
2424 this . onClick = ( evt ) => {
2525 let el = evt . target ;
26- const id = el . id ;
26+ const id = el . id . split ( '-' ) [ 0 ] ;
2727 const switchEl = el . closest ( '[role="switch"]' ) ;
2828 let ariaDescribedBy ;
2929 let isChecked ;
@@ -62,4 +62,4 @@ const Switch = new function () {
6262}
6363
6464
65- export default Switch ;
65+ export default Switch ;
You can’t perform that action at this time.
0 commit comments