glpi icon indicating copy to clipboard operation
glpi copied to clipboard

Drag and drop not working in form editor

Open MHAM2025 opened this issue 8 months ago • 11 comments

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • [x] I have searched the existing issues

Version

11.0.0-beta3

Bug description

Hi, On the form editor, if I try to move a question nothing happen. The cursor changing to a hand but the question not moving.

Relevant log output


Page URL

No response

Steps To reproduce

  1. Go to Assistance > Forms > select a form
  2. Try to move a question
  3. Nothing move

Your GLPI setup information

No response

Anything else?

No response

MHAM2025 avatar May 15 '25 12:05 MHAM2025

Hi, thank you for your feedback. I can't reproduce your problem. When I try to reproduce your case, I can well move the elements and reorganize them. I found a small bug that occurs when you have several sections, corrected with #19755.

If you manage to reproduce your problem, can you provide me with a video of the bug in action?

ccailly avatar May 19 '25 14:05 ccailly

Hi, thanks for your reply. I found out that is the question comes from an horizontal layout i can move it, but not in the vertical layout. When i grab the question, there is the hand but then it seems that i didn't keep it. I hope the video will help you.

https://github.com/user-attachments/assets/47a97a72-7cf2-4ce0-a405-4836c582f697

MHAM2025 avatar May 19 '25 15:05 MHAM2025

Thanks for the video, I understand your problem better, but I still can't reproduce it. To make sure you have the latest files, can you make sure you don't have a cache? Can you also check for errors in your browser's console?

ccailly avatar May 20 '25 07:05 ccailly

Maybe could you tets with an up-to-date nightly build, since there were many issues fixed since beta3.

trasher avatar May 20 '25 08:05 trasher

Hi, I clean glpi cache and open browser's console. I have 404 error for GET https://server/glpi/public/css_compiled/css_core_palettes.min.css?v=ac21998409dd73291b3ef48d76facf845055a388

I know that I encountered a similar problem with conditions because of a bad server config. (i use WAMP but it's fix now)

I will test with a nightly build

MHAM2025 avatar May 21 '25 09:05 MHAM2025

I have 404 error for GET https://server/glpi/public/css_compiled/css_core_palettes.min.css?v=ac21998409dd73291b3ef48d76facf845055a388

This should be fixed by #19771, but it is probably not the cause of your initial issue.

cedric-anne avatar May 21 '25 09:05 cedric-anne

Hi, I update with beta4. I still can't move the questions. I don't have errors in the console. I have a deprecation : -ms-high-contrast is in the process of being deprecated. Please see <URL> for tips on updating to the new Forced Colors Mode standard. But i don't think it's related.

MHAM2025 avatar May 22 '25 08:05 MHAM2025

What browser are you using ?

cedric-anne avatar May 22 '25 08:05 cedric-anne

I'm using Edge

MHAM2025 avatar May 22 '25 08:05 MHAM2025

What is the version of your Edge browser ?

cedric-anne avatar May 22 '25 09:05 cedric-anne

My version Version 136.0.3240.64

MHAM2025 avatar May 22 '25 09:05 MHAM2025

I tested this before and it seemed to be working in both layouts, but I tested it again and now it isn't working at all. I found that sorting partially works again when removing the handle option but the behavior seems inconsistent with where the dragged element gets placed and the drag image includes sibling elements/questions.

Google Chrome Version 138.0.7204.49 I did recently update Chrome from version 136 after my initial testing of the Forms.

It does work properly even with the handle in Firefox 140.0.1.

Seems like it could be a Chromium issue but I do not notice any issues with sorting in the Kanban, display preferences, custom assets field editor or even the helpdesk tiles config.

cconard96 avatar Jul 05 '25 14:07 cconard96

I have the same issue, horizontal layout can move it, but not in the vertical layout. Both Chrome version 138.0.7204.158 and 113.0.5672.64. But with FireFox is no problem.

jxchinaquanfu avatar Jul 24 '25 04:07 jxchinaquanfu

Thanks for the report, I confirm the issue.

#20552 should fix it.

AdrienClairembault avatar Aug 05 '25 13:08 AdrienClairembault