Added emptyText to SelectArrayInput component#10504
Added emptyText to SelectArrayInput component#10504Tomas025 wants to merge 6 commits intomarmelab:nextfrom
Conversation
packages/ra-ui-materialui/src/input/SelectArrayInput.stories.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Michael Tamm <mail@michaeltamm.de>
Co-authored-by: Gohar Attiq <goharattiq@hotmail.com>
Co-authored-by: Gohar Attiq <goharattiq@hotmail.com>
|
I'm -1 for this feature. The right UI for clearing a select input is a clear button, not a clear option. MUI has a discussion and instructions for implementing this in user land: |
|
I agree that it makes more sense a clear button, but I tried to replicate the way it was in |
I understand your reasonning, and it makes sense. However, for new features, we look for the best balance between intuitive DX and good UX. In this case, I think the balance clearly points to a clear button as adornment. |

Problem
Absence of the emptyText property in the SelectArrayInput component #10454
Solution
The empty Text property was added to the component, the emptyText option clears all fields that had been selected
How To Test
It is possible to view the update in the storybook
Additional Checks
masterfor a bugfix, ornextfor a featureAlso, please make sure to read the contributing guidelines.