I'm essentially trying to emulate the Apple ID account creation birthday input (can be found here: https://appleid.apple.com/account or if you google Apple ID and click "Create Your Apple ID" on top).
Part of the functionality of the input is that when you click into it, if there's no current value it will default to mm/dd/yyyy
and force the user's input caret to the front of the input, replacing characters from the front as the user types. Any later clicks in the input will force the user's cursor to after the spot in the value they've typed. E.g. 05/4m/yyyy
the cursor must be after the 4.
I've done a lot of searching and not came across any reliable ways to do this in React. Attempts to use setSelectionRange
haven't worked. Thank you!