Is there a way to have the popup show the same time as in the TextInput #716
Unanswered
rickspencer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When you use the spinner to set the time and display it in the TextInput field, upon clicking on it again to change it it defaults to the current time and not the set time.
I have tried to use a ternary value in the useState for the input but im a noob and it doesn't seem to work...
const [selectedStartTime, setSelectedStartTime] = useState(selectedStartTime ? selectedStartTime : "");
So what I'd like to achieve is an empty field to start with and then set the time with the spinner and If I click on the field again to change the time the spinner starts at the time that is in the field and not the current system time.
Cheers,
Beta Was this translation helpful? Give feedback.
All reactions