Revert "chore: refactor listen to input change"

This reverts commit adfa4324ef.
This commit is contained in:
Zephyruso 2023-09-01 09:47:22 +08:00
parent 81fad81736
commit 414bdd5b97

View File

@ -30,12 +30,12 @@ const Collapse: ParentComponent<Props> = (props) => {
'collapse collapse-arrow overflow-visible border-secondary bg-base-200', 'collapse collapse-arrow overflow-visible border-secondary bg-base-200',
)} )}
> >
<input <div
type="checkbox" class="collapse-title text-xl font-medium"
onChange={(e) => onCollapse(e.target.checked)} onClick={() => onCollapse(!props.isOpen)}
checked={props.isOpen} >
/> {title}
<div class="collapse-title text-xl font-medium">{title}</div> </div>
<div <div
class={twMerge( class={twMerge(
getCollapseContentClassName(), getCollapseContentClassName(),