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

Selection highlighting lost when focus leaves editor #3279

Open
fooblahblah opened this issue Oct 30, 2024 · 0 comments
Open

Selection highlighting lost when focus leaves editor #3279

fooblahblah opened this issue Oct 30, 2024 · 0 comments
Labels

Comments

@fooblahblah
Copy link

fooblahblah commented Oct 30, 2024

Describe the bug

When selecting text in the editor it is highlighted as blue as expected. However when the editor does not have focus, the highlighting is lost. The weirder part seems to be that the selection in the editor is still in effect, so using the call editor().getSelectedText() will return the previously, but not highlighted selection.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://nhn.github.io/tui.editor/latest/tutorial-example01-editor-basic
  2. Select some text in the editor
  3. Simply click the preview on the right
  4. Notice the selection highlight is lost

Expected behavior

Selection highlight is maintained even when focus is lost.

Desktop (please complete the following information):

  • OS: Arch Linux
  • Browser Chrome and Firefox
  • Chrome version 130.0.6723.69 (Official Build) Arch Linux (64-bit)
  • Firefox version 131.0.3 (64-bit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant