Fix timestamp input pattern and type

This commit is contained in:
Raphael Wickihalder 2022-05-12 14:34:40 +08:00 committed by infinite-persistence
commit f0f1d0f695
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -469,11 +469,11 @@ export default function ReportContent(props: Props) {
{includeTimestamp(claim) && ( {includeTimestamp(claim) && (
<div className="section"> <div className="section">
<FormField <FormField
type="tel" type="text"
name="timestamp" name="timestamp"
label={__('Timestamp')} label={__('Timestamp')}
placeholder={'00:23:59'} placeholder={'00:23:59'}
pattern="[0-9]{3}" pattern="[0-9]{2}:[0-9]{2}:[0-9]{2}"
value={input.timestamp} value={input.timestamp}
maxlength={8} maxlength={8}
onChange={(e) => { onChange={(e) => {