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

Topic is removed when pressing the Del key while writing the content description of the topic #7657

Open
1 task
TechWatching opened this issue Nov 1, 2024 · 13 comments
Labels

Comments

@TechWatching
Copy link

What is the URL where the issue is happening

https://roadmap.sh

What browsers are you seeing the problem on?

No response

Describe the Bug

When editing the content description of a topic, pressing the Delete key deletes the topic instead of deleting a character or a piece of text.

To reproduce:

  1. Open a roadmap on the roadmap.sh editor
  2. Click on a topic, then on the Content & Links tab
  3. Start adding some text in the description text input
  4. Place your cursor somewhere in the middle of the description text input
  5. Press the Del key
  6. The topic is deleted

Output from browser console (if any)

No response

Participation

  • I am willing to submit a pull request for this issue.
@dansholds
Copy link
Contributor

@arikchakma

@arikchakma
Copy link
Collaborator

If you move your focus from the input/text area, then it will delete it. Otherwise, I can't reproduce the issue.

@dansholds could you please verify also?

@dansholds
Copy link
Contributor

I also cannot replicate, the behaviour is "as expected" when unfocussed.

@TechWatching
Copy link
Author

Did you place your cursor somewhere in the middle of your description text and then press delete? Maybe I can send you a video of the bug.

@arikchakma
Copy link
Collaborator

That would be really helpful, and yes I did try with the cursor in the middle.

@TechWatching
Copy link
Author

Here you go. I'm pressing the Del key (Suppr on my french keyboard). I did not move the mouse, just moved the cursor using my keyboard and press the del key to remove a letter, it removed the topic instead.

roadmap_sh.mp4

@arikchakma
Copy link
Collaborator

Here you go. I'm pressing the Del key (Suppr on my french keyboard). I did not move the mouse, just moved the cursor using my keyboard and press the del key to remove a letter, it removed the topic instead.

roadmap_sh.mp4

Interesting, let me debug and fix it. Thanks for letting us know.

@arikchakma arikchakma reopened this Nov 5, 2024
@arikchakma
Copy link
Collaborator

@TechWatching Sorry, I still can't reproduce the issue. Can you please tell me which browser you are using and the OS?

@TechWatching
Copy link
Author

Edge, windows, french keyboard

@arikchakma
Copy link
Collaborator

I don't have access to Windows, I will try it out tomorrow on my friend's laptop.

@arikchakma
Copy link
Collaborator

@TechWatching I have tested it in an Edge browser and a Windows laptop, and I'm sorry, but I still can't reproduce the issue.

@fellalli
Copy link
Contributor

fellalli commented Nov 8, 2024

@TechWatching do you have browser extensions?

@TechWatching
Copy link
Author

I have browser extensions but I tested on an in-private session (without extensions) and still have the same problem. To make sure we are talking of the same key, here is the key I am using when I am in the middle of a text on my french azerty keyboard.

I can reproduce on Firefox (private browsing) as well. The focus is in the context text box, I am typing some text, go in the middle of a word for instance, press the Delete key, it does not delete a letter but the whole node (as see in the video above)

french_keyboard

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

4 participants