File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export class CheckboxLabel {
1919 var _a ;
2020 const labelText = ( _a = checkboxLabel . textContent ) === null || _a === void 0 ? void 0 : _a . trim ( ) ;
2121 const checkboxContainer = checkboxLabel . nextElementSibling ;
22- const checkboxLabelElement = checkboxContainer . querySelector ( "label" ) ;
22+ const checkboxLabelElement = checkboxContainer . querySelector ( "label:last-child " ) ;
2323 if ( ! checkboxLabelElement || ! labelText )
2424 return ;
2525 checkboxLabelElement . textContent = labelText ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export class CheckboxLabel {
2727 const checkboxContainer =
2828 checkboxLabel . nextElementSibling as HTMLDivElement ;
2929 const checkboxLabelElement = checkboxContainer . querySelector (
30- "label"
30+ "label:last-child "
3131 ) as HTMLLabelElement ;
3232 if ( ! checkboxLabelElement || ! labelText ) return ;
3333 checkboxLabelElement . textContent = labelText ;
You can’t perform that action at this time.
0 commit comments