Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Custom Input Components Not Working for Int array #510

Closed
driesvancraen opened this issue Dec 29, 2024 · 1 comment
Closed

[BUG] - Custom Input Components Not Working for Int array #510

driesvancraen opened this issue Dec 29, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@driesvancraen
Copy link

Description

When using a custom input components on an array field it keeps acting like a field with a relationship.

Reproduction URL

/

Reproduction steps

1. Create custom input components (e.g., DatePickerInput and DaySelectorInput)
2. Configure a model with multiple fields using these custom inputs

Next router

App router

Next Admin version

7.1.1

Screenshots

No response

Next Admin options

{
  model: {    
    Schedule: {
      edit: {
        display: ["months", "weekdays"],
        fields: {
          months: {
            input: <DaySelectorInput />
          },
          weekdays: {
            input: <DaySelectorInput />
          }
        }
      }
    },
  },
}

Logs

No response

Browsers

Firefox, Safari

@driesvancraen driesvancraen added the bug Something isn't working label Dec 29, 2024
@cregourd cregourd self-assigned this Jan 16, 2025
cregourd added a commit that referenced this issue Jan 16, 2025
* #510 allow custom input in array fields

* Add Changeset

* Upgrade upload-artifact for CI
@cregourd
Copy link
Collaborator

Hi,
A fix is available in v7.1.2. You can now use a custom input component in an array field, note that your custom component will be wrapped inside a block that allows to change order and remove items

Let us know if you encounter any issues 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants