-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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: Remove button isn't disabled when a user is removed by pressing Enter #9347
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will merge once we have videos for all the platforms |
@parasharrajat @pecanoro Updated. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to production by @sketchydroide in version: 1.1.78-8 🚀
|
Details
When the button is disabled, even if you hover over it, the renderProp hover property of the Pressable react native component is false. However, if the button is not disabled, the hover property starts to work fine. In our case, the button is active initially, thus the hover style get applied correctly. When we remove the user by keyboard, the button state changes to disabled but the hover style still applies. This might be due to a bug in the Pressable component.
Fixed Issues
$ #8935
Tests
The remove button should be disabled right after the member is removed
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)PR Reviewer Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followed/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)QA Steps
The remove button should be disabled right after the member is removed
Screenshots
Web
Screen.Recording.2022-06-02.at.1.14.49.PM.mov
Desktop
Screen.Recording.2022-06-08.at.2.54.15.AM.mov
iOS
Simulator.Screen.Recording.-.iPhone.13.-.2022-06-12.at.01.32.04.mp4
Android
Screen.Recording.2022-06-12.at.1.35.08.AM.mov
Mobile Web
Simulator.Screen.Recording.-.iPhone.13.-.2022-06-12.at.01.38.01.mp4