#363 - Update labelfield

This commit is contained in:
Elio Struyf
2023-03-14 17:21:19 +01:00
parent 35d87226f6
commit f583ab2f97
2 changed files with 3 additions and 2 deletions
@@ -1,6 +1,7 @@
import * as React from 'react';
import { Ref } from 'react';
import { HTMLFieldProps, connectField, filterDOMProps } from 'uniforms';
import { LabelField } from './LabelField';
export type LongTextFieldProps = HTMLFieldProps<
string,
@@ -22,7 +23,7 @@ function LongText({
}: LongTextFieldProps) {
return (
<div {...filterDOMProps(props)}>
{label && <label htmlFor={id}>{label}</label>}
<LabelField label={label} id={id} required={props.required} />
<textarea
disabled={disabled}
+1 -1
View File
@@ -69,6 +69,6 @@ export class Telemetry {
});
// Reset the events
this.events = [];
}, 1000);
}, 1000) as NodeJS.Timeout;
}
}