mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-10 05:15:35 +08:00
Revert "chore: refactor listen to input change"
This reverts commit adfa4324ef
.
This commit is contained in:
parent
81fad81736
commit
414bdd5b97
@ -30,12 +30,12 @@ const Collapse: ParentComponent<Props> = (props) => {
|
||||
'collapse collapse-arrow overflow-visible border-secondary bg-base-200',
|
||||
)}
|
||||
>
|
||||
<input
|
||||
type="checkbox"
|
||||
onChange={(e) => onCollapse(e.target.checked)}
|
||||
checked={props.isOpen}
|
||||
/>
|
||||
<div class="collapse-title text-xl font-medium">{title}</div>
|
||||
<div
|
||||
class="collapse-title text-xl font-medium"
|
||||
onClick={() => onCollapse(!props.isOpen)}
|
||||
>
|
||||
{title}
|
||||
</div>
|
||||
<div
|
||||
class={twMerge(
|
||||
getCollapseContentClassName(),
|
||||
|
Loading…
Reference in New Issue
Block a user