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

Fix: Fixed selecting wrong items when creating or renaming an item #11237

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

hishitetsu
Copy link
Member

@hishitetsu hishitetsu commented Feb 10, 2023

Resolved / Related Issues
Items resolved / related issues by this PR.

Details
ItemContainer.Content appears to refer to the old item before the item was created or renamed.
Because of this, checked and unchecked events select wrong items.
These events are for (un)selecting (un)checked items and are not needed in this logic, so I disabled these events temporarily.

Deleteing items also selects another item, but this appears to be the intended specification so it is left as is at this time.
(ItemViewModel.cs:1850)

Validation
How did you test these changes?

  • Built and ran the app
  • Tested the changes for accessibility

@yaira2
Copy link
Member

yaira2 commented Feb 10, 2023

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@yaira2 yaira2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yaira2 yaira2 added the ready to merge Pull requests that are approved and ready to merge label Feb 10, 2023
@yaira2 yaira2 merged commit 890f58a into files-community:main Feb 10, 2023
@hishitetsu hishitetsu deleted the FixItemSelect branch February 10, 2023 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Creating, renaming, or deleting an item causes Files to select additional items
2 participants