Skip to content

feat: Add emptyText prop to SelectArrayInput#11276

Open
Gdhanush-13 wants to merge 105 commits into
marmelab:nextfrom
Gdhanush-13:fix/select-array-input-empty-text
Open

feat: Add emptyText prop to SelectArrayInput#11276
Gdhanush-13 wants to merge 105 commits into
marmelab:nextfrom
Gdhanush-13:fix/select-array-input-empty-text

Conversation

@Gdhanush-13

Copy link
Copy Markdown

Problem

Absence of the emptyText property in the SelectArrayInput component #10454

Solution

  • Add emptyText prop to display custom text when no items selected
  • Support both string and ReactNode types for emptyText
  • Add comprehensive tests for emptyText functionality
  • Add Storybook story demonstrating the feature
  • Update documentation with usage examples
  • Addresses all feedback from closed PR Added emptyText to SelectArrayInput component #10504

How To Test

  • View the updated Storybook story
  • Run the new tests
  • Check documentation examples

Additional Checks

  • The PR targets
    ext for a feature
  • The PR includes unit tests
  • The PR includes stories
  • The documentation is up to date

Fixes #10454

dreglad and others added 30 commits February 1, 2026 04:43
This change ensures that custom loading and empty components in DataTable have access to ResourceContext and other standard contexts.

Also added comprehensive unit tests for DataTableBase to verify context availability and correct rendering behavior for empty and refreshing states.
…ies.tsx

Co-authored-by: Thiery Michel <thiery@marmelab.com>
…missions

Limit test workflow token permissions
…ode-scanning

Fix RichTextField code scanning issues
…r-redos

Fix `FormDataConsumer` to avoid ReDoS in source detection
…alidation

Fix ArrayInput root error display on conditional mount
Bumps [lodash-es](https://github.com/lodash/lodash) from 4.17.23 to 4.18.1.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.23...4.18.1)

---
updated-dependencies:
- dependency-name: lodash-es
  dependency-version: 4.18.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
…rn/lodash-es-4.18.1

Bump lodash-es from 4.17.23 to 4.18.1
fzaninotto and others added 30 commits May 18, 2026 14:30
[TypeScript] Fix ArrayField doesn't accept a label prop
…rn/systeminformation-5.31.6

Bump systeminformation from 5.31.1 to 5.31.6
…-suggestions

Fix(AutocompleteInput): do not open autocomplete options when shouldRenderSuggestions returns false
…dOptions=false

Adds a Storybook story to demonstrate and visually verify the fix for
the case where re-selecting the same option after partial text deletion
should immediately restore the full label without requiring a blur event.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Bumps [@tootallnate/once](https://github.com/TooTallNate/once) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/TooTallNate/once/releases)
- [Changelog](https://github.com/TooTallNate/once/blob/v2.0.1/CHANGELOG.md)
- [Commits](TooTallNate/once@2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: "@tootallnate/once"
  dependency-version: 2.0.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
…rn/tootallnate/once-2.0.1

Bump @tootallnate/once from 2.0.0 to 2.0.1
Bumps [tmp](https://github.com/raszi/node-tmp) from 0.2.5 to 0.2.6.
- [Changelog](https://github.com/raszi/node-tmp/blob/master/CHANGELOG.md)
- [Commits](raszi/node-tmp@v0.2.5...v0.2.6)

---
updated-dependencies:
- dependency-name: tmp
  dependency-version: 0.2.6
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
…rn/tmp-0.2.6

Bump tmp from 0.2.5 to 0.2.6
Fix(ArrayInput): display validation error when validation is performed via useFormContext's trigger
…rn/astro-6.1.10

Bump astro from 5.18.1 to 6.1.10 and fix docs_headless compatibility
…reselection-update

Fix AutoCompleteInput value does not get updated when re-selecting the same option
…contexts

Fix `<DataTableBase>` `loading` and `empty` components miss access to data table context
## Problem

React-hook-form 7.72 introduced form-level validate (react-hook-form/react-hook-form#13195), which conflicts with react-admin's built-in form-level validation.

## Solution

Ignore the new `validate` prop type from react-hook-form
[TypeScript] Fix compilation with react-hook-form 7.72.0
- Add emptyText prop to display custom text when no items selected
- Support both string and ReactNode types for emptyText
- Add comprehensive tests for emptyText functionality
- Add Storybook story demonstrating the feature
- Update documentation with usage examples
- Addresses issue marmelab#10454

Fixes marmelab#10454
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.