Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Adding 'preserveSelectionOnBlur' prop #2128

Closed
wants to merge 1 commit into from
Closed

Adding 'preserveSelectionOnBlur' prop #2128

wants to merge 1 commit into from

Conversation

holloway
Copy link
Contributor

Summary

This adds a preserveSelectionOnBlur prop as per #2123

Test Plan

Tests were added for the two possible scenarios. I'm not sure how much to mock in this test because it is just testing a specific branch of code, so I've faked certain details like the rangeCount.

What do you think @mrkev @claudiopro ?

@mrkev
Copy link
Contributor

mrkev commented Jul 15, 2019

I like this! Thanks for building it out, I'll import it (:

Copy link

@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.

@mrkev has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@holloway
Copy link
Contributor Author

@mrkev ah great, thanks!

So what's the process from here? It gets imported to your internal repo and then it'll make its way into the next release?

@mrkev
Copy link
Contributor

mrkev commented Jul 16, 2019

@holloway yup— PRs get merged from the internal repo so we can keep the code we have inside and outside in sync, and we can test it against our internal codebases before merging. It'll be merged and available on master right away, and then be available with the release of 0.11.1 through NPM.

@facebook-github-bot
Copy link

@mrkev merged this pull request in db792ef.

@holloway holloway deleted the feature/preserve-selection branch September 24, 2019 01:06
jdecked pushed a commit to twitter-forks/draft-js that referenced this pull request Oct 9, 2019
Summary:
**Summary**

This adds a `preserveSelectionOnBlur` prop as per facebookarchive#2123

**Test Plan**

Tests were added for the two possible scenarios. I'm not sure how much to mock in this test because it is just testing a specific branch of code, so I've faked certain details like the rangeCount.

What do you think mrkev claudiopro ?
Pull Request resolved: facebookarchive#2128

Reviewed By: claudiopro

Differential Revision: D16270879

Pulled By: mrkev

fbshipit-source-id: 304af92c1211b8ff95741bff434b4fe3c4b6dd7d
mmissey pushed a commit to mmissey/draft-js that referenced this pull request Mar 24, 2020
Summary:
**Summary**

This adds a `preserveSelectionOnBlur` prop as per facebookarchive#2123

**Test Plan**

Tests were added for the two possible scenarios. I'm not sure how much to mock in this test because it is just testing a specific branch of code, so I've faked certain details like the rangeCount.

What do you think mrkev claudiopro ?
Pull Request resolved: facebookarchive#2128

Reviewed By: claudiopro

Differential Revision: D16270879

Pulled By: mrkev

fbshipit-source-id: 304af92c1211b8ff95741bff434b4fe3c4b6dd7d
alicayan008 pushed a commit to alicayan008/draft-js that referenced this pull request Jul 4, 2023
Summary:
**Summary**

This adds a `preserveSelectionOnBlur` prop as per facebookarchive/draft-js#2123

**Test Plan**

Tests were added for the two possible scenarios. I'm not sure how much to mock in this test because it is just testing a specific branch of code, so I've faked certain details like the rangeCount.

What do you think mrkev claudiopro ?
Pull Request resolved: facebookarchive/draft-js#2128

Reviewed By: claudiopro

Differential Revision: D16270879

Pulled By: mrkev

fbshipit-source-id: 304af92c1211b8ff95741bff434b4fe3c4b6dd7d
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants