Having trouble implementing placeholder in textfield that has select prop. (MUI 5)

Viewed 22

I have created a textfield for a react app I am building. As you can see in the codesandbox below, there are 2 different textfields with a set placeholder. However, only in the first textfield the placeholder is being applied and not in the second one. The second one has a select prop, which i looked through the documentation and did not find an answer to this question. Any help would be greatly appreciated.

Please see this codesandbox for the code

In summary, for some reason placeholder='Enter dog's name' is being applied as intended.

However, placeholder="Select dog size" is not being applied for some reason.

Any help would be greatly appreciated

0 Answers
Related