The answer to this problem lies in the initial state you declared and not in the input. This problem occur when at the initial state, you provided a whitespace. If the initial state is " ", then this issue occurs. It must be "", so that placeholder will be there properly. Regarding the same issue, I made a post on Twitter/X.com Here is the link, kindly visit, I explained in detail