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

Pressing 'Enter' causes error #137

Open
adaptedbee opened this issue Sep 12, 2024 · 0 comments
Open

Pressing 'Enter' causes error #137

adaptedbee opened this issue Sep 12, 2024 · 0 comments
Labels
🐞 Bug Something isn't working ⛑ Needs triage Someone is checking

Comments

@adaptedbee
Copy link

Description

  1. Click the tooltip icon
  2. Not focusing into input field, press 'Enter'.

Environment

  • Editor.js version: 2.29.1
  • editorjs-tooltip version: 1.2.2
  • Device, Browser, OS: Desktop, Google Chrome 128.0.6613.137, Windows 10

Current behavior

'Enter' works on selected word. Line breaks, selected word disappears, tooltip creates with empty word and undefined attribute.
image
image

Expected behavior

Prevent user from press Enter, when not focused on input field. Maybe autofocus into input field.

@adaptedbee adaptedbee added ⛑ Needs triage Someone is checking 🐞 Bug Something isn't working labels Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working ⛑ Needs triage Someone is checking
Projects
None yet
Development

No branches or pull requests

1 participant