-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
enhancementA suggestion to add to or change behaviorA suggestion to add to or change behavior
Description
Expected Behavior
When a List component is provided both an onOrder function and an array of disabled itemKey's the disabled items should not be re-orderable.
Actual Behavior
The disabled items are still able to be re-ordered through both Drag 'n Drop as well as clicking the up/down arrow to re-order the item.
URL, screen shot, or Codepen exhibiting the issue
Codepen example: https://codesandbox.io/s/grommet-v2-template-forked-82ogqc
Steps to Reproduce
- Create a list component with an onOrder function
- Create an array of itemKeys to disable
- The list will appear and be re-orderable with some items disabled
- Click the up/down arrow on any disabled item or Drag 'n Drop a disabled item and the list will be re-ordered.
Your Environment
- React version: 17.0.2
- Grommet version: 2.25.0
- Browser Name and version: Microsoft Edge 103.0.1264.51
- Operating System and version (desktop or mobile): macOS 12.4 (Desktop)
Metadata
Metadata
Assignees
Labels
enhancementA suggestion to add to or change behaviorA suggestion to add to or change behavior