Fixed flawed example code for Accordion (#2853)

* Fixed flawed example code

Fixed an issue with the example code for accordion.

The flawed code:
- Rendered a read-only field due to checked being set to a value instead of using "defaultChecked".
- Raised an error in TypeScript (TS2322: Type `string` is not assignable to type `boolean | undefined`)

This addresses both those issues

* Added replacement string

* - Reverted changes
This commit is contained in:
Supermarcel10 2024-02-19 11:59:28 +00:00 committed by GitHub
parent e661a38448
commit 32ce5dd500
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ export function htmlToJsx(node) {
'"0"': "{0}",
"<!--": "{/*",
"-->": "*/}",
'checked="checked"': "defaultChecked",
// "accent-height=": "accentHeight=",
// "alignment-baseline=": "alignmentBaseline=",