Browse Source

fix(checkbox): fix double-toggle event firing on single declaration checkbox

master
mortezaei 24 hours ago
parent
commit
0486650377
  1. 1
      src/components/Componentes/question-checkbox.tsx

1
src/components/Componentes/question-checkbox.tsx

@ -54,7 +54,6 @@ export function QuestionCheckbox({
<div className="flex flex-col gap-3.5 pt-1">
<label
htmlFor={`checkbox-${question.id}`}
onClick={toggleSingle}
className={[
"cursor-pointer rounded-[16px] font-medium text-[14px] transition-all duration-200 active:scale-[0.99] flex items-center gap-3.5 w-full px-5 py-4 text-start leading-relaxed",
isChecked

Loading…
Cancel
Save