Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
isCheckboxCheckedAtIndex: (index: number) => {
const listItem = this.items.toArray()[index].getListItemElement();
const toggleEl = listItem.querySelector(strings.CHECKBOX_SELECTOR);
return toggleEl!.checked;
},
setCheckedCheckboxOrRadioAtIndex: (index: number, isChecked: boolean) => {
hasCheckboxAtIndex: (index: number) => {
const listItem = this.items.toArray()[index].getListItemElement();
return !!listItem.querySelector(strings.CHECKBOX_SELECTOR);
},
hasRadioAtIndex: (index: number) => {