re-editor icon indicating copy to clipboard operation
re-editor copied to clipboard

Selection is not cleared when I have multiple CodeEditors and focus on a different one

Open evanrolfe opened this issue 6 months ago • 1 comments

Describe the bug If I have 2 or more CodeEditors in an app, and I make a text selection on CodeEditor #1, then focus on CodeEditor #2, the selection in the first CodeEditor remains.

To Reproduce Steps to reproduce the behavior:

  1. Have an app with 2 or more CodeEditors
  2. Type text in both CodeEditors
  3. Make a text selection on CodeEditor #1
  4. Focus on CodeEditor #2

Expected behavior The selection from CodeEditor #1 should be cleared when any other CodeEditor is focused.

Screenshots Image

Device:

  • iOS & Linux (LinuxMint)
  • Flutter 3.29.3
  • Dart 3.7.2
  • re_editor 0.7.0

evanrolfe avatar Jun 26 '25 08:06 evanrolfe

I think you use the same controller in two editors.

MegatronKing avatar Sep 25 '25 08:09 MegatronKing