Skip to content

Conversation

@crgb0s
Copy link
Contributor

@crgb0s crgb0s commented Nov 17, 2025

This component will visually uncheck items when they are no longer visible after a search, but does not call the onSelect to update the selected state observed by parent context. This change keeps the visual state of the List in sync with the selected state of the parent.

@kermitapp
Copy link

kermitapp bot commented Nov 17, 2025

@crgb0s crgb0s changed the title Call onSelect when items are unchecked on filter Call onSelect when items are unselected after being hidden by filter Nov 17, 2025
@crgb0s crgb0s force-pushed the AT-1097-bank-accounts-deselected branch from 3fde97d to b9fc49b Compare November 17, 2025 19:11
@crgb0s crgb0s marked this pull request as ready for review November 17, 2025 19:17
@crgb0s crgb0s requested a review from a team as a code owner November 17, 2025 19:17
@crgb0s crgb0s force-pushed the AT-1097-bank-accounts-deselected branch from b9fc49b to fff0a2a Compare November 17, 2025 19:26
Comment on lines 476 to 477
// Remove one of the selected items
component.setProps({ items: [itemObjs[1], itemObjs[2]] });
Copy link
Contributor

Choose a reason for hiding this comment

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

this is also adding a new item, yeah? mostly a nitpick about the comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated comment for clarity

This component will visually uncheck items when they are no longer visible after a search, but does not call the onSelect to update the selected state observed by parent context. This change keeps the visual state of the List in sync with the selected state of the parent.
@crgb0s crgb0s force-pushed the AT-1097-bank-accounts-deselected branch from fff0a2a to 5529b3c Compare November 18, 2025 18:27
@github-actions
Copy link
Contributor

Released prerelease version 8.17.2-AT-1097-bank-accounts-deselected-66b5d61.0.
You may now run npm install @appfolio/react-gears@AT-1097-bank-accounts-deselected

@crgb0s crgb0s merged commit 3334120 into master Nov 19, 2025
5 checks passed
@crgb0s crgb0s deleted the AT-1097-bank-accounts-deselected branch November 19, 2025 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants