-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
TouchableWithoutFeedback Component doesn't disable click functionality when disabled #30953
Comments
Hi, @amarlette I am new to opensource can I pick up this issue? |
Yes you can! I would recommend checking out our contribution guide (https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md) to help get you started. |
I have tested TouchableWithoutFeedback is working fine this commit Here solve the issue |
@saurabhkacholiya can you attach the test that you used to confirm this? |
I would say no
react-native/Libraries/Components/Pressable/Pressable.js Lines 171 to 174 in 1c7d9c8
those changes are in the
☮️ 🙏 |
@amarlette I am adding snapshots and test cases please validate.
SnapShot
|
@fabriziobertoglio1987 Pressability is being used in TouchableWithoutFeedback
|
thanks @saurabhkacholiya but sorry, I think you are wrong. Your snapshot #30953 (comment) is wrong
while the commit 1c7d9c8 has the correct snapshot with react-native/Libraries/Components/Pressable/__tests__/__snapshots__/Pressable-test.js.snap Lines 283 to 289 in 1c7d9c8
Facebook Team requested us to build this feature in accessability and change |
@saurabhkacholiya as you have already wrote test for this fix, you can check my solution, test it and verify it actually works and then publish a pull request with your github account fabOnReact@153a37c I did not test it, so you should investigate in details. If you don't want to publish the pull request, I'll be happy to do it myself. |
@fabriziobertoglio1987 Sure I would like to give a pull request Thanks a lot. can you just validate the snapshot
|
I notice just now 1c7d9c8#diff-466095fa96dd3e4ad5dffc7f31d8da5084c8a0acd3396a8b65b45cd99c48dd4bR320-R330 when you run the test in shallow render, the test output is not correct .. but seems to be ok for the Facebook team ... so I would not worry about that The important thing is that they work when deep rendering the output 1c7d9c8#diff-466095fa96dd3e4ad5dffc7f31d8da5084c8a0acd3396a8b65b45cd99c48dd4bR283-R304 |
Results in snapshot are similar to commit facebook@1c7d9c8 facebook#30953 (comment)
@carloscuesta thank you for opening up a PR for this issue! |
Description
When using a screen reader the TouchableWithoutFeedback component doesn't disable click functionality.
This issue is covered in-depth by parent issue #30840, please check there for more details.
React Native version:
0.63
The text was updated successfully, but these errors were encountered: