Skip to content

Commit 1833803

Browse files
committed
Fix datepicker opening twice on start date
When creating an event, on the source tab, the datepicker for the start date metadata field is opening again after clicking on a date. The first click also does not change the value. This fixes this somewhat crudely.
1 parent 27273db commit 1833803

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/events/partials/ModalTabsAndPages/NewSourcePage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ const Upload = <T extends RequiredFormPropsUpload>({
321321
{/* One row for each metadata field*/}
322322
{sourceMetadata.UPLOAD && sourceMetadata.UPLOAD.metadata.map((field, key) => (
323323
<tr key={key}>
324-
<td>
324+
{/* Set fixed width to prevent date picker from opening twice */}
325+
<td style={{ width: "20%" }}>
325326
<span>{t(field.label as ParseKeys)}</span>
326327
{field.required && <i className="required">*</i>}
327328
</td>

0 commit comments

Comments
 (0)