mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 08:15:52 +01:00
refactor(react/settings): associate IDs for labels
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
interface FormTextAreaProps {
|
||||
id?: string;
|
||||
currentValue: string;
|
||||
onBlur?(newValue: string): void;
|
||||
rows: number;
|
||||
}
|
||||
export default function FormTextArea({ onBlur, rows, currentValue }: FormTextAreaProps) {
|
||||
export default function FormTextArea({ id, onBlur, rows, currentValue }: FormTextAreaProps) {
|
||||
return (
|
||||
<textarea
|
||||
id={id}
|
||||
rows={rows}
|
||||
onBlur={(e) => {
|
||||
onBlur?.(e.currentTarget.value);
|
||||
|
||||
Reference in New Issue
Block a user