The documentation says that <AutocompleteArrayInput> supports the emptyText property, but it does not work.

Author: nptryCreated Nov 23, 2022Updated Jul 31, 2026

Environment

  • React-admin version: 4.5.2

doc: https://marmelab.com/react-admin/AutocompleteArrayInput.html#emptytext

I used this property, but it didn't work: https://codesandbox.io/s/quizzical-turing-wrjs7q?file=/src/posts/PostCreate.tsx

<AutocompleteArrayInput
          source="roles"
          choices={[
            { id: "admin", name: "Admin" },
            { id: "u001", name: "Editor" },
            { id: "u002", name: "Moderator" },
            { id: "u003", name: "Reviewer" }
          ]}
          emptyText="all"
        />
image