-
Notifications
You must be signed in to change notification settings - Fork 337
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
Page scrolls down after document load on Firefox #385
Comments
Confirmed, having the same issue here! |
Same problem here please resolve! |
I have the same issue. Does anyone have a workaround they have found (besides changing to a different project)? |
Having the same problem with the current firefox. My dirty workaround (because I did not found where wysihtml scrolls down to the page bottom): |
@Stryker93 Only downside of that is when you are scrolling down ASAP and once that is triggered you are back at the top of the page again. I tried something similar and ended up removing the scroll to action because it also caused unwanted behavior. Might swap to Quill if this issue sticks around 👎 |
This issue does not exist in Firefox 54. |
@Nyholm true, when I used this, I hadn't noticed the error until a team member told me about it. After some testing, It turned out to be the new versions of FF only. So the question, was there something FF deprecated? Or perhaps added that caused it? |
What could be the reason for this behavior? What hotfix do you suggest? |
Still seeing this. Does anyone have a workaround? |
I added this js script after all the js scripts included in the application :
|
Doesn't that scroll to the top of the page? We are using version 0.5.5, and I've tracked down the two places that are causing this. The two places are:
// Safary has a bug of not restoring selection after node.normalize correctly.
// Detects the misbegaviour and patches it
var normalizeHasCaretError = function() {
+ // in the new Firefox Quantum, the code below causes the page to jump/scroll. Therefore, just return false.
+ if (window.navigator.userAgent.indexOf('Firefox/') > -1) {
+ return false;
+ }
if ("createRange" in document && "getSelection" in window) {
|
@francis Took me a while to find the bugger, only had minified version. Added the change and it stopped scrolling FF :) Cheers for the fix 👍 |
This issue only happens on FF.
I rolled back to using wysihtml5 by xing for now which I didn't have the issue with.
Tested on:
MacOS 10.12.6
FF 55.0.x
The text was updated successfully, but these errors were encountered: