-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix: Remove button isn't disabled when a user is removed by pressing Enter #9347
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
Conversation
parasharrajat
left a comment
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 Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)PR Reviewer Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followed/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris 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