mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-27 22:54:03 +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',
|
'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(),
|
||||||
|
Loading…
Reference in New Issue
Block a user