score:0

can you elaborate on your problem? when you have set the allowempty prop, the selectinput should be empty by default. i was able to reproduce the desired behavior with the follwing code:

<selectinput
  source="test"
  label="test"
  allowempty
  choices={[
    { id: "1", name: "yo" },
    { id: "2", name: "yoyo" }
  ]}
  initialvalue="" // this line can be omitted
/>

one problem i could think of would be when you have set default values for the <form /> component you're using, <simpleform /> per default.


Related Query

More Query from same tag