Skip to content
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

Add rejectResponderTermination prop to TextInput #16755

Closed
wants to merge 3 commits into from

Conversation

cmcewen
Copy link
Contributor

@cmcewen cmcewen commented Nov 8, 2017

Motivation

This is a new attempt to get #11251 merged. I just cherry-picked the relevant commits. TextInputs are set to always ignore responder termination requests, which is not desirable when they are enclosed inside a swipeable area like a ListView

Test Plan

Create a TextInput inside a ListView and set the rejectResponderTermination prop to false. Otherwise, all TextInputs should have the same behavior they do now.

Release Notes

[IOS] [ENHANCEMENT] [TextInput] - Add rejectResponderTermination prop to to TextInput. This enables TextInputs inside Swipeables to function properly.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 8, 2017
@adamski
Copy link

adamski commented Nov 8, 2017

Thanks @cmcewen, would be good to see this go in finally!

@cmcewen
Copy link
Contributor Author

cmcewen commented Nov 20, 2017

@hramos this was originally approved a while ago and failed on import, and it also doesn't change the default behavior at all. Any chance we can get this merged?

@facebook-github-bot
Copy link
Contributor

@cmcewen I tried to find reviewers for this pull request and wanted to ping them to take another look. However, based on the blame information for the files in this pull request I couldn't find any reviewers. This sometimes happens when the files in the pull request are new or don't exist on master anymore. Is this pull request still relevant? If yes could you please rebase? In case you know who has context on this code feel free to mention them in a comment (one person is fine). Thanks for reading and hope you will continue contributing to the project.

@adamski
Copy link

adamski commented Dec 20, 2017

I would really appreciated if this PR could be merged soon. It was first submitted as #11251 over a year ago.

@stale
Copy link

stale bot commented Feb 18, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Feb 18, 2018
@cmcewen
Copy link
Contributor Author

cmcewen commented Feb 18, 2018

This is a super simple PR just providing access to a property but not changing the default behavior at all

@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Feb 18, 2018
@adamski
Copy link

adamski commented Feb 18, 2018

Yes, it is a simple enough change, would be great to see it go in soon.

@madyankin
Copy link

Can't believe a such simple PR can't be merged since Dec 1, 2016

@hramos hramos requested a review from shergin February 27, 2018 19:01
@hramos
Copy link
Contributor

hramos commented Feb 27, 2018

This may appear simple but can have side effects on some of our internal apps. I'll let @shergin take another look, since he had some concerns when he last looked at the related PR.

@hramos
Copy link
Contributor

hramos commented Feb 27, 2018

In any case, the PR will need to be rebased since it has been awhile since it was opened. As a bonus, we can ensure tests pass.

@cmcewen cmcewen force-pushed the text-input-responder branch from d5987d7 to 3257688 Compare February 27, 2018 19:41
@cmcewen cmcewen force-pushed the text-input-responder branch from 145b634 to 5dec8b8 Compare March 1, 2018 04:34
@cmcewen
Copy link
Contributor Author

cmcewen commented Mar 1, 2018

@hramos rebased + tests passing

@cmcewen
Copy link
Contributor Author

cmcewen commented Mar 7, 2018

@hramos the tests are passing and the PR was rebased - anything else I can do to get this in?

@hramos
Copy link
Contributor

hramos commented Mar 7, 2018

@cmcewen looks like this is still waiting on a review as I mentioned earlier.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Component: TextInput Related to the TextInput component. Feature Request 🌟 Platform: iOS iOS applications. labels Mar 16, 2018
@facebook-github-bot
Copy link
Contributor

@cmcewen I tried to find reviewers for this pull request and wanted to ping them to take another look. However, based on the blame information for the files in this pull request I couldn't find any reviewers. This sometimes happens when the files in the pull request are new or don't exist on master anymore. Is this pull request still relevant? If yes could you please rebase? In case you know who has context on this code feel free to mention them in a comment (one person is fine). Thanks for reading and hope you will continue contributing to the project.

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label May 2, 2018
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@shergin is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added Import Failed and removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels May 3, 2018
@facebook-github-bot
Copy link
Contributor

I tried to merge this pull request into the Facebook internal repo but some checks failed. To unblock yourself please check the following: Does this pull request pass all open source tests on GitHub? If not please fix those. Does the code still apply cleanly on top of GitHub master? If not can please rebase. In all other cases this means some internal test failed, for example a part of a fb app won't work with this pull request. I've added the Import Failed label to this pull request so it is easy for someone at fb to find the pull request and check what failed. If you don't see anyone comment in a few days feel free to comment mentioning one of the core contributors to the project so they get a notification.

@adamski
Copy link

adamski commented May 3, 2018

Not sure if I'm able to rebase this now that it's become part of a newer PR. In any case, I hope it can be merged soon.

@cpojer cpojer force-pushed the text-input-responder branch from 5dec8b8 to 4b27a7d Compare January 28, 2019 13:49
@cpojer
Copy link
Contributor

cpojer commented Jan 28, 2019

Let's actually land this for real. Sorry for the long wait.

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Jan 28, 2019
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@pull-bot
Copy link

Warnings
⚠️

📋 Changelog - This PR appears to be missing Changelog. Please add a section called "changelog" and format it as explained in the contributing guidelines.

Generated by 🚫 dangerJS

@react-native-bot
Copy link
Collaborator

@cmcewen merged commit 11df0ea into facebook:master.

@facebook facebook locked as resolved and limited conversation to collaborators Jan 28, 2019
@react-native-bot react-native-bot added the Merged This PR has been merged. label Jan 28, 2019
@hramos hramos removed Import Started This pull request has been imported. This does not imply the PR has been approved. Import Failed labels Feb 6, 2019
matt-oakes pushed a commit to matt-oakes/react-native that referenced this pull request Feb 7, 2019
Summary:
This is a new attempt to get facebook#11251 merged. I just cherry-picked the relevant commits. TextInputs are set to always ignore responder termination requests, which is not desirable when they are enclosed inside a swipeable area like a ListView

Create a TextInput inside a ListView and set the `rejectResponderTermination` prop to false. Otherwise, all TextInputs should have the same behavior they do now.

[IOS] [ENHANCEMENT] [TextInput] - Add `rejectResponderTermination` prop to to TextInput. This enables TextInputs inside Swipeables to function properly.
Pull Request resolved: facebook#16755

Differential Revision: D7846365

Pulled By: cpojer

fbshipit-source-id: eb21140061ae1f475fbd83fc63a23819e931787d
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Component: TextInput Related to the TextInput component. Merged This PR has been merged. Platform: iOS iOS applications. Ran Commands One of our bots successfully processed a command.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants