Open adamappdev opened 2 years ago
For now I'm doing it this way, in the editor's onfocus, I remove the focus from the text field, on the other hand I try to focus the editor but the keyboard doesn't open again.
Yes I tried some of these tricks but could not reach a result, I also tried playing with the source code of this package but still I didn't know how to fix this
It isn't possible to fix with the current state of webivews in Flutter. They do not handle focus correctly and it is by far one of the worst issues with this package that I wish I could fix.
@tneotia Is there a roadmap or a place we can start working on to help with bringing this fix?
That's a pretty odd behavior. However, fortunately the input itself works correctly. So, as a temporary and awkward workaround it's possible to style TextField as unfocused when the editor receives focus, even if the TextField is in fact still focused, and style the TextField as focused again after a tap on it.
Describe the bug When using the
HtmlEditor
on Android and iOS with aTextField
in the same page, focusing on theTextField
and thenHtmlEditor
, the focus will not go away fromTextField
To Reproduce I have created a minimal bug reproduction project Steps to reproduce the behavior:
TextField
and anHtmlEditor
on top of each otherTextField
to focus on itHtmlEditor
to focus on itExpected behavior Tapping on
HtmlEditor
should remove the focus fromTextField
, but it does notDevice: Android and iOS
Additional context Although I've created a complete reproduction project, here is the simplified Widget that triggers this bug: