mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-08-09 10:22:55 +02:00
#363 - Update labelfield
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -69,6 +69,6 @@ export class Telemetry {
|
||||
});
|
||||
// Reset the events
|
||||
this.events = [];
|
||||
}, 1000);
|
||||
}, 1000) as NodeJS.Timeout;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user