Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Clear menu actions when actions are set #140

Merged

Conversation

sabymike
Copy link
Contributor

Fixes: #139

Overview

If I mount the Menu component with a set of actions (e.g. A, B, C) and then an event changes the set of actions to a subset (B, C) the action A is never removed because actions are only appended

Test Plan

To test, set up a component that starts with a list of actions and then removes some of those actions from the prop list

If I mount the Menu component with a set of actions (e.g. A, B, C) and then an event changes the set of actions to a subset (B, C) the action A is never removed because actions are only appended
@sabymike sabymike requested a review from Naturalclar as a code owner June 25, 2021 15:33
Copy link
Member

@Naturalclar Naturalclar left a comment

Choose a reason for hiding this comment

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

@sabymike LGTM, thanks for the catch!

@Naturalclar Naturalclar merged commit 92728dd into react-native-menu:master Jun 30, 2021
@sabymike sabymike deleted the clear-menu-actions-ios branch June 30, 2021 13:24
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Menu Items not clearing on iOS after property update
2 participants