Skip to content

Commit

Permalink
Merge pull request #3505 from bettyblocks/fix/datetime-picker-show-de…
Browse files Browse the repository at this point in the history
…fault-value-PAGE-4719

Fix/datetime picker show default value page 4719
  • Loading branch information
ewoutquax authored Oct 11, 2024
2 parents d72e9ec + b686656 commit f59ec8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/dateTimePickerInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

const { current: labelControlRef } = useRef(generateUUID());

const [selectedDate, setSelectedDate] = useState(valueText);
const [selectedDate, setSelectedDate] = useState(valueText || null);
const [errorState, setErrorState] = useState(error);
const [currentHelperText, setHelper] = useState(optionHelperText);
const [isDisabled, setIsDisabled] = useState(disabled);
Expand Down

0 comments on commit f59ec8b

Please sign in to comment.