Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Name of layers are duplicated when drag and dropping in Manage layers #2425

Open
forteller opened this issue Jan 10, 2025 · 1 comment
Open
Labels

Comments

@forteller
Copy link

Describe the bug
When dragging and dropping a layer in the Manage layer pane, the name and the buttons gets duplicated if you are not able to drag and drop in a straight line, but rather steer a bit to the left. The duplication of the name carries over to other places where you can see the name of the layer.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://umap.openstreetmap.fr/no/map/uavhengige-sjapper_859787
  2. Click on Manage layers
  3. Drag and drop a layer up or down, and a little bit to the left
  4. See the duplication
  5. Do it again as many times as you like to see it duplicate again
  6. Click to edit the layer
  7. See that the name field is filled with the name duplicated as many times as you d'n'd

Expected behavior
Nothing should happen except for the reordering of the layer

Screenshots

Image

Image

Image

Image

Desktop (please complete the following information):

  • OS: Nobara Linux 30
  • Browser Firefox
  • Version 132.0.1

Thank you very much for your work!

@forteller forteller added the bug label Jan 10, 2025
@yohanboniface
Copy link
Member

Thanks for the report!

That's a clash between the layer title being editable in place (contenteditable) and the drag and drop of the layers.

I've had a look, I reproduce on Firefox (but not on Chromium), but for now I've not been able to fix that. I'm afraid we'll need to rethink the content editable title :(

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants