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

[3.0] isSortable not working as expected on relationship field #6185

Open
joedawson opened this issue May 2, 2024 · 3 comments
Open

[3.0] isSortable not working as expected on relationship field #6185

joedawson opened this issue May 2, 2024 · 3 comments
Assignees
Labels
[possible-bug] Possible bug which hasn't been reproduced yet v3

Comments

@joedawson
Copy link

joedawson commented May 2, 2024

Link to reproduction

No response

Describe the Bug

When using the isSortable admin config option with a relationship field (whilst also using hasMany), I expect to be able to sort the selected items.

However this is not the case and the select menu functions as a typical hasMany select and items cannot be dragged/sorted.

Screenshot_2024-05-02_at_11 35 38

To Reproduce

I have a posts collection with the following field for related categories:

{
  name: 'categories',
  label: 'Categories',
  type: 'relationship',
  relationTo: 'categories',
  hasMany: true,
  admin: {
    isSortable: true,
  },
},

I would expect the Categories field to be sortable.

Payload Version

3.0.0-beta.21

Adapters and Plugins

No response

@joedawson joedawson added the [possible-bug] Possible bug which hasn't been reproduced yet label May 2, 2024
@tomekwlod
Copy link

I have exactly the same problem, 3.0.0-b24 in my case

@denolfe denolfe assigned denolfe and kendelljoseph and unassigned denolfe May 10, 2024
@kendelljoseph
Copy link
Contributor

Hi @joedawson , I'm taking a look at this!

@tomekwlod
Copy link

Any news on this one?

@denolfe denolfe added the v3 label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[possible-bug] Possible bug which hasn't been reproduced yet v3
Projects
None yet
Development

No branches or pull requests

4 participants