Dashlist: use defaultChecked for IconToggle (#42642)

This commit is contained in:
Alex Khomenko 2021-12-03 10:31:41 +02:00 committed by GitHub
parent cdfb2d02d5
commit 9c2126c002
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,7 +194,7 @@ function IconToggle({
<label className={styles.wrapper}>
<input
type="checkbox"
checked={checked}
defaultChecked={checked}
onClick={toggleCheckbox}
className={styles.checkBox}
aria-label={ariaLabel}