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

calcite-value-list: Removing an item after re-ordering removes more than one item in certain cases #3555

Open
1 of 2 tasks
jmanke opened this issue Nov 23, 2021 · 15 comments
Open
1 of 2 tasks
Labels
0 - new New issues that need assignment. blocked This issue is blocked by another issue. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. estimate - 8 Requires input from team, consider smaller steps. has workaround Issues have a workaround available in the meantime. p - low Issue is non core or affecting less that 10% of people using the library spike complete Issues that have a research spike completed and dev work can proceed
Milestone

Comments

@jmanke
Copy link

jmanke commented Nov 23, 2021

Actual Behavior

Removing an item from the calcite-value-list removes more than one item.

Expected Behavior

Removing an item from the calcite-value-list should only remove the item selected to be removed.

Reproduction Steps and Sample

NOTE: This bug seems specific to Ember

Setup

  1. Create a calcite-value-list with drag-enabled prop
  2. Create a backing class with two items to be rendered as calcite-value-list-items (see code sample for example)
  3. When list is re-orded or an item is removed, ensure backing data reflects the change

Repro Steps

  1. Drag the second item into the first position of the list
  2. Remove the last item in the list
  3. Observe both items are removed from the list. However, the backing data is still correct.

Sample:

  1. Ember Twiddle

Relevant Info

  • Removing the item externally (preventing the item from being removed inside the calcite-value-list) still causes the bug to occur.
  • I notice the calcite-value-list takes care of modifying the HTML when re-ordering. It would be nice if the calcite-value-list only emitted an event when it wants to be re-ordered.

Reproducible version: @esri/[email protected]

  • CDN
  • NPM package
@jmanke jmanke added 0 - new New issues that need assignment. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. needs triage Planning workflow - pending design/dev review. labels Nov 23, 2021
@jcfranco jcfranco self-assigned this Dec 2, 2021
@jmanke
Copy link
Author

jmanke commented Jan 6, 2022

This is a high priority issue for the Dashboards team 🙂

@benelan benelan added the p - high Issue should be addressed in the current milestone, impacts component or core functionality label Jan 6, 2022
@benelan benelan added this to the Sprint 01/17 - 01/28 milestone Jan 20, 2022
@benelan benelan removed the needs triage Planning workflow - pending design/dev review. label Jan 20, 2022
@benelan benelan removed the p - high Issue should be addressed in the current milestone, impacts component or core functionality label Feb 1, 2022
@Elijbet
Copy link
Contributor

Elijbet commented Mar 21, 2022

I also noticed that when you drag item 2 into the first position in the list and remove item 2, it won't remove that visually either. The data is still correct (item 1 is the only one in the list) for now, but if you move item 1 again, it just keeps adding it to the list. Deleting one of them removes all of them at once.

ember-value-list-drag-bug.mov

@geospatialem geospatialem added this to the 2023 July Priorities milestone Apr 7, 2023
@geospatialem geospatialem added the has workaround Issues have a workaround available in the meantime. label Apr 7, 2023
@geospatialem
Copy link
Member

Moved to the July milestone for evaluation and upped the time estimate, since it could impact other uses across components.

@jcfranco
Copy link
Member

@geospatialem We might need to push this further as there hasn't been any updates on the PR referenced above. 🥲

@geospatialem
Copy link
Member

Moved to the October milestone, which will evaluate if:

  1. This issue is still valid with the deprecated component and parity of list via Epic: [List and List Item] Add parity support with Value-List and Pick-List with sorting and removing items #6430, and
  2. If the Sortable and Ember conflict can be mitigated

@brittneytewks brittneytewks added the low risk Issues with low risk for consideration in low risk milestones label Aug 30, 2023
@geospatialem geospatialem added needs milestone Planning workflow - pending milestone assignment, has priority and/or estimate. and removed low risk Issues with low risk for consideration in low risk milestones labels Sep 13, 2023
@geospatialem
Copy link
Member

Spike to determine if the following above is true, and if we should proceed, or close out the above issue.

@geospatialem geospatialem added spike Issues that need quick investigations for time estimations, prioritization, or a quick assessment. and removed needs milestone Planning workflow - pending milestone assignment, has priority and/or estimate. labels Nov 22, 2023
@geospatialem geospatialem added this to the 2024 April Priorities milestone Nov 22, 2023
@jcfranco
Copy link
Member

There hasn't been any updates on Sortable regarding this. Unless there are any objections, I'm going to mark this as blocked and we'll revisit once activity resumes on the linked PR above.

@jcfranco jcfranco added 2 - in development Issues that are actively being worked on. blocked This issue is blocked by another issue. spike complete Issues that have a research spike completed and dev work can proceed and removed 1 - assigned Issues that are assigned to a sprint and a team member. labels Apr 12, 2024
@github-actions github-actions bot added 0 - new New issues that need assignment. needs milestone Planning workflow - pending milestone assignment, has priority and/or estimate. and removed spike Issues that need quick investigations for time estimations, prioritization, or a quick assessment. 2 - in development Issues that are actively being worked on. labels Apr 12, 2024
@github-actions github-actions bot removed this from the 2024-04-30 - Apr Release milestone Apr 12, 2024
Copy link
Contributor

cc @geospatialem, @brittneytewks

@geospatialem geospatialem added this to the Stalled milestone Aug 29, 2024
@geospatialem geospatialem removed the needs milestone Planning workflow - pending milestone assignment, has priority and/or estimate. label Aug 29, 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. blocked This issue is blocked by another issue. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. estimate - 8 Requires input from team, consider smaller steps. has workaround Issues have a workaround available in the meantime. p - low Issue is non core or affecting less that 10% of people using the library spike complete Issues that have a research spike completed and dev work can proceed
Projects
None yet
Development

No branches or pull requests

7 participants