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 back early return in setOffsets which was removed in 16.5.0 #14095

Merged
merged 1 commit into from
Nov 5, 2018

Conversation

einarq
Copy link
Contributor

@einarq einarq commented Nov 5, 2018

The scenario is that we have a TinyMCE editor (which uses an iframe, which the relevant code changes in #13650 made changes related to), and this editor is shown in every row in a list component.
The editor supports pasting to add more rows, and when pasting a lot of items (100+), we get "Object expected", due to getSelection not being present on the Window object. Seems strange obviously, but there could be some security issue with Edge or something? Not sure.

Not sure how to test this so didn't add any unit tests for it. The early return existed pre 16.5.0, this PR adds it back.

… 16.4.2 and 16.5.0. Fails in Edge in some scenarios.
@sizebot
Copy link

sizebot commented Nov 5, 2018

Details of bundled changes.

Comparing: 8eca0ef...58d3d0a

scheduler

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
scheduler.development.js n/a n/a 0 B 19.17 KB 0 B 5.74 KB UMD_DEV
scheduler.production.min.js n/a n/a 0 B 3.16 KB 0 B 1.53 KB UMD_PROD

Generated by 🚫 dangerJS

@gaearon gaearon merged commit 6c404d8 into facebook:master Nov 5, 2018
@gaearon
Copy link
Collaborator

gaearon commented Nov 5, 2018

Looks good. Thanks.

jetoneza pushed a commit to jetoneza/react that referenced this pull request Jan 23, 2019
… 16.4.2 and 16.5.0. Fails in Edge in some scenarios. (facebook#14095)
n8schloss pushed a commit to n8schloss/react that referenced this pull request Jan 31, 2019
… 16.4.2 and 16.5.0. Fails in Edge in some scenarios. (facebook#14095)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants