We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b92f602 commit 0e060e1Copy full SHA for 0e060e1
packages/@react-spectrum/datepicker/docs/DateField.mdx
@@ -205,7 +205,7 @@ function Example() {
205
return (
206
<>
207
<DateField label="Birth date" value={date} onChange={setDate} />
208
- <p>Selected date: {formatter.format(date.toDate(getLocalTimeZone()))}</p>
+ <p>Selected date: {date ? formatter.format(date.toDate(getLocalTimeZone())): '--'}</p>
209
</>
210
);
211
}
0 commit comments