question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to scroll the content inside the editor if the editor is in focus

See original GitHub issue

I use following versions of react and react-native

react: 17.0.1 => 17.0.1 react-native: 0.64.2 => 0.64.2 react-native-pell-rich-editor: “^1.8.5”

Scroll works perfectly if the editor is not in focus and the keyboard is not present.

While trying to edit content inside the editor, lets say list of items, then we can’t scroll the content. The scrolling kind of stuck. Is there any configuration i am missing in the code. If we dismiss the keyboard and try scrolling, it will work. The issue is in both iOS and Android, in real devices and simulators.

Please help.

Thank you

Code

 <ScrollView
          style={[styles.scroll]}
          ref={that.scrollRef}
          scrollEventThrottle={20}>
          <RichEditor
            disabled={disabled}
            editorStyle={contentStyle} // default light style
            ref={that.richText}
            style={styles.rich}
            useContainer={true}
            placeholder={'please input content'}
            initialContentHTML={content}
            editorInitializedCallback={that.editorInitializedCallback}
            onChange={that.handleChange}
            onFocus={that.handleFocus}
            onBlur={that.handleBlur}
            onCursorPosition={that.handleCursorPosition}
            pasteAsPlainText={true}
          />
  </ScrollView>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
shameersncommented, Aug 31, 2021
1reaction
stulipcommented, Aug 24, 2021

I happened to be dealing with some bugs mentioned in Issues of this project today, and I am usually very busy without time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Editor inside Scrollview not scrolling. - MSDN - Microsoft
I have an editor control inside a StackLayout which is inside a ScrollView. I can scroll all the controls but when I go...
Read more >
Flutter-Quill editor not working inside a scrollable form
If I use Column, then quillEditor works perfectly fine, but it can't drive the rest of the page to scroll together (because Column...
Read more >
Focus management with Vue refs - Learn web development
Next, we need to move focus to the edit form's <input> element when the "Edit" button is clicked. However, because our edit form...
Read more >
Official - Important Message Related to the TextField Refactor ...
I need a text field which only gets focus when the player clicks on it and always loses focus when the player confirms...
Read more >
Focus tracking - CKEditor 5 Documentation
And CKEditor 5 being a rich text editor is no exception here. ... If you want to focus the editor and move the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found