fix(react/settings): not working properly when side-by-side in split

This commit is contained in:
Elian Doran
2025-08-14 17:53:24 +03:00
parent e0e7bd42cc
commit 25527ecc21
2 changed files with 17 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
import type { ComponentChildren } from "preact";
import { useUniqueName } from "./hooks";
interface FormRadioProps {
name: string;
@@ -19,7 +20,7 @@ export default function FormRadioGroup({ name, values, currentValue, onChange }:
<input
className="form-check-input"
type="radio"
name={name}
name={useUniqueName(name)}
value={value}
checked={value === currentValue}
onChange={e => onChange((e.target as HTMLInputElement).value)} />