Skip to content

Commit

Permalink
fix: add comment in DateField
Browse files Browse the repository at this point in the history
  • Loading branch information
mirovladimitrovski committed Sep 11, 2023
1 parent a6d069d commit 1d50c00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/DateField/DateField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ const DateField: React.FC<Props> = ({ className, label, error, helperText, value
{!rest.required ? <span>{t('optional')}</span> : null}
</label>
<div className={styles.container}>
{/* don't be tempted to make it type="hidden", onChange will practically be ignored that way */}
<input ref={hiddenInputRef} id={id} className={styles.hiddenInput} name={rest.name} onChange={onChange} />
<input
className={styles.input}
Expand Down

0 comments on commit 1d50c00

Please sign in to comment.