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

Pressing return jumps to start of line in Android API 33 #3169

Open
tseringn opened this issue Sep 27, 2022 · 1 comment
Open

Pressing return jumps to start of line in Android API 33 #3169

tseringn opened this issue Sep 27, 2022 · 1 comment

Comments

@tseringn
Copy link

tseringn commented Sep 27, 2022

Do you want to request a feature or report a bug?

bug

What is the current behavior?

Currently the pressing return in keyboard jumps start of the line in Android 13, but when entering space and then pressing return goes as expected to the next line. Did some debugging and found

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/gmertk/e61z7nfa/.

used default code in the above jsfiddle link

Screen Record of actual bug

Screen.Recording.2022-09-26.at.10.05.03.PM.mov

What is the expected behavior?

pressing return should go to next line

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?

latest draft js, Android 13 pixel 5 vm, on MacOs 12.6

--EDIT--
The editorState.getCurrentInlineStyle() does not returns an empty array even if there are bunch of inline styles, until white space is encountered

@tseringn
Copy link
Author

This is pretty serious bug for me, so a workaround or a fix will be very much appreciated

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

No branches or pull requests

1 participant