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

Fix Bug 304 - Editor scrolls to bottom when pressing enter in the mid… #1223

Closed
wants to merge 6 commits into from

Conversation

andpor
Copy link

@andpor andpor commented May 27, 2017

Summary

Fixes issue #304 . Minor code change. No impact on any other code.

Test Plan

All tests pass. N

@bradbyte
Copy link

bradbyte commented Sep 6, 2017

We are facing this same issue, however, I needed to factor the pOffset value in first if handler (if (scrollParent === window)) in addition to your proposed fix. It would be added to line https://github.com/facebook/draft-js/pull/1223/files#diff-26f7fbfbc0fd3c1e08d0d6b1b9bf21b8R105.

@andpor Did you encounter that as well?

@andpor
Copy link
Author

andpor commented Sep 8, 2017

@bradbumbalough no I did not have this issue. What is the use case where this is failing so I can check as well on my side.

I can't believe this PR is still not merged....

cooltoast added a commit to picnichealth/draft-js that referenced this pull request Oct 4, 2017
@andpor
Copy link
Author

andpor commented Oct 11, 2017

Can someone form Facebook explain why the PR has not yet been merged. This is a serious showstopper issue. PR has been opened since May 27 - this is 4 months already.

@jackyho112
Copy link
Contributor

jackyho112 commented Nov 12, 2017

@andpor

As you mentioned here, the issue seems to have been fixed. Feel free to close this PR. Thanks for the contribution!

@henrychung-bauerxcel
Copy link

@andpor @jackyho112 The issue has not been fixed with the overflow: auto, unfortunately. The changes in this PR does. Is anyone still looking in to this? Can this be merged? It's a one-liner and it does fix the issues described in #304. Anyhow, it would make a whole lot of people happy if this could be resolved :)

@terenceodonoghue
Copy link

Still an issue as at 0.10.5 - any plans to merge this PR?

@niveditc
Copy link
Contributor

niveditc commented Oct 7, 2018

Hey folks! Apologies for the delay in merging this PR.

@andpor - can you rebase on master & fix the conflicts. Then I'll merge it in :)

@niveditc
Copy link
Contributor

@andpor - just wanted to ping this! I'd be happy to merge it in once the conflicts have been fixed.

@andpor
Copy link
Author

andpor commented Mar 5, 2019

After 2 years ??????? Really amazing....

@andpor
Copy link
Author

andpor commented Mar 5, 2019

I think I resolved conflicts - please double check and merge.

@andpor
Copy link
Author

andpor commented Mar 5, 2019

@niveditc - please let me know what needs to be done to have this merged...

@Mrwaite
Copy link

Mrwaite commented Apr 8, 2019

@niveditc - please let me know what needs to be done to have this merged...

After 2 years...... hope to merge this PR as soon as possibile

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.

@mrkev
Copy link
Contributor

mrkev commented Jul 11, 2019

@andpor thanks for rebasing, importing to check it out.

Copy link
Contributor

@claudiopro claudiopro left a comment

Choose a reason for hiding this comment

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

This PR needs a bit more work before being merged. Please address the inline comments, and ensure the code is formatted using yarn format before committing your changes.

src/component/contents/DraftEditorBlock.react.js Outdated Show resolved Hide resolved
@andpor
Copy link
Author

andpor commented Jul 15, 2019

What else needs to be done for this PR to get merged?

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.

@andpor
Copy link
Author

andpor commented Aug 22, 2019

What is going on with this PR ?

@Lam9090
Copy link

Lam9090 commented Aug 29, 2019

@andpor It's seems some lint error caused the Travis CI build failed,can you fix it.
image

facebook-github-bot pushed a commit that referenced this pull request Nov 5, 2019
Summary:
Should fix #304.
Thanks andpor.

**Summary**
based on Andrzej's #1223, issue has been there for an incredible 3.5 years. Let's fix this.
Pull Request resolved: #2197

Reviewed By: elboman

Differential Revision: D18314441

Pulled By: mrkev

fbshipit-source-id: 99284101bab838c574341b44b3cfcd935f1dc0e2
@mrkev
Copy link
Contributor

mrkev commented Jan 28, 2020

Fixed in #2197

@mrkev mrkev closed this Jan 28, 2020
mmissey pushed a commit to mmissey/draft-js that referenced this pull request Mar 24, 2020
Summary:
Should fix facebookarchive#304.
Thanks andpor.

**Summary**
based on Andrzej's facebookarchive#1223, issue has been there for an incredible 3.5 years. Let's fix this.
Pull Request resolved: facebookarchive#2197

Reviewed By: elboman

Differential Revision: D18314441

Pulled By: mrkev

fbshipit-source-id: 99284101bab838c574341b44b3cfcd935f1dc0e2
vilemj-Viclick pushed a commit to kontent-ai/draft-js that referenced this pull request Jul 16, 2020
Summary:
Should fix facebookarchive#304.
Thanks andpor.

**Summary**
based on Andrzej's facebookarchive#1223, issue has been there for an incredible 3.5 years. Let's fix this.
Pull Request resolved: facebookarchive#2197

Reviewed By: elboman

Differential Revision: D18314441

Pulled By: mrkev

fbshipit-source-id: 99284101bab838c574341b44b3cfcd935f1dc0e2
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.