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

[List and List Item] Cancel drag reorder on ESC #9314

Open
2 of 6 tasks
crowjonah opened this issue May 10, 2024 · 0 comments
Open
2 of 6 tasks

[List and List Item] Cancel drag reorder on ESC #9314

crowjonah opened this issue May 10, 2024 · 0 comments
Labels
0 - new New issues that need assignment. a11y Issues related to Accessibility fixes or improvements. ArcGIS Field Apps Issues logged by ArcGIS Field Apps team members. calcite-components Issues specific to the @esri/calcite-components package. enhancement Issues tied to a new feature or request. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive needs triage Planning workflow - pending design/dev review.

Comments

@crowjonah
Copy link
Contributor

Check existing issues

Description

When utilizing the calcite-list and calcite-list-item for draggable items, cancelling a drag operation with the ESC key unexpectedly commits the reorder, contrary to expectations where the item should return to its original position.

Acceptance Criteria

The dragged item should revert to its original position when the ESC key is pressed, indicating that the drag operation has been canceled.

Relevant Info

This issue has been consistently observed across different implementations including the Calcite documentation pages and external applications like MapViewer. It was initially mentioned in a prior issue (#6554 (comment)).

Which Component

List and List Item

Example Use Case

Current behavior of the list component as demo'd on the doc site: https://codepen.io/crow-jonah-norlander/pen/qBGBeOd?editors=100

  1. Initiate a drag operation on any item within calcite-list.
  2. Press the ESC key before releasing the drag.
  3. Notice that the item animates a return to its origin before being moved to the drag end location at the time esc was pressed.

Priority impact

p4 - not time sensitive

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-angular
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/eslint-plugin-calcite-components

Esri team

ArcGIS Field Apps

@crowjonah crowjonah added enhancement Issues tied to a new feature or request. 0 - new New issues that need assignment. needs triage Planning workflow - pending design/dev review. labels May 10, 2024
@github-actions github-actions bot added calcite-components Issues specific to the @esri/calcite-components package. ArcGIS Field Apps Issues logged by ArcGIS Field Apps team members. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive labels May 10, 2024
@geospatialem geospatialem added the a11y Issues related to Accessibility fixes or improvements. label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - new New issues that need assignment. a11y Issues related to Accessibility fixes or improvements. ArcGIS Field Apps Issues logged by ArcGIS Field Apps team members. calcite-components Issues specific to the @esri/calcite-components package. enhancement Issues tied to a new feature or request. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive needs triage Planning workflow - pending design/dev review.
Projects
None yet
Development

No branches or pull requests

2 participants