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

troubles in cursor and focus (related with saving process ?) #335

Open
paulgirard opened this issue Jun 10, 2020 · 2 comments
Open

troubles in cursor and focus (related with saving process ?) #335

paulgirard opened this issue Jun 10, 2020 · 2 comments

Comments

@paulgirard
Copy link
Member

Describe the bug

While writting in editor, the saving process has an impact on the focus.
Two reports in one cause not the same issue in Firefox and in chrome.

To Reproduce

in Firefox 77.0.1 (64 bits) linux mint :

  1. add two lines of texts
  2. click outside the editor to focus on main page
  3. click back in the editor and suppress some characters in the second line
  4. the cursors jumps to start of line

No exception in console.

in Chrome 83.0.4103.97 (Build officiel) (64 bits) linux mint :

  1. write something
  2. wait for end of save operation
  3. type something, nothing happen cause the editor lost focus
  4. there is an exception in console (see below)

I couldn't reproduce this in a new section other than the ones I created for my story in the first place.
@robindemourat I can give you access to my story if needed.
The exception displayed when bug in chrome :

bundle.js:1 Uncaught TypeError: Cannot read property 'getIn' of undefined
    at e.exports (bundle.js:1)
    at e.exports (bundle.js:1)
    at e.exports (bundle.js:1)
    at e.exports (bundle.js:1)
    at bundle.js:1
    at Ls (bundle.js:1)
    at unstable_flushControlled (bundle.js:1)
    at bundle.js:1
    at Object.<anonymous> (bundle.js:1)
    at f (bundle.js:1)

Expected behavior

Cursor an focus should be stable.

@robindemourat
Copy link
Member

Thanks, this is a known (not-so-sporadic) bug for firefox. Probably related to peritext/scholar-draft#30 / to fix in upstream scholar-draft

@robindemourat robindemourat added this to the Release summer 2020 milestone Jun 10, 2020
@paulgirard
Copy link
Member Author

I confirm it's not sporadic at all even in Chrome (lost of focus).
It's actually pretty painful.
Although it's a bit cavalier I do +1 my own issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants