surveyjs / survey-creator

Scalable open-source survey software to generate dynamic JSON-driven forms within your JavaScript application. The form builder features a drag-and-drop UI, CSS Theme Editor, and GUI for conditional logic and form branching.
https://surveyjs.io/open-source
Other
897 stars 372 forks source link

[Mobile] An error occurs when using drag and drop #5466

Closed AmirhoseinHesami closed 4 months ago

AmirhoseinHesami commented 4 months ago

Are you requesting a feature, reporting a bug or ask a question?

reporting a bug

What is the current behavior?

I am using surveyjs in my latest Nextjs 14.2.3 app. on mobile devices when you add two or more questions and then if you try to use drag and drop to sort the questions the Unhandled Runtime Error occurs. the error is : "TypeError: Cannot read properties of undefined (reading 'setAttributeNS')"

https://github.com/surveyjs/survey-creator/assets/86534843/fb11f371-a44a-4a98-87e3-6c9732aeb5bf

JaneSjs commented 4 months ago

Hello @AmirhoseinHesami, Thank you for reaching out. I tested a SurveyJS Creator v1.10.2 on Android, however, didn't reproduce the issue. image

I would appreciate it if you test this demo on your end and let me know whether the issue occurs on your end.

Thanks

JaneSjs commented 4 months ago

@AmirhoseinHesami, I managed to reproduce the issue on my end using the surveyjs-nextjs demo.

image

@dmitry-kurmanov, please run this demo and open a browser window in a mobile resolution. You'll be able to reproduce the issue.

JaneSjs commented 4 months ago

Hello @AmirhoseinHesami, We placed the following PR to fix styling of a drag-drop question icon: https://github.com/surveyjs/survey-creator/pull/5492. Once the new maintenance update is available, I would recommend that you upgrade and check to see if the icon appears correctly and whether the TypeError: Cannot read properties of undefined (reading 'setAttributeNS') exception remains. Unfortunately, we couldn't reproduce this failure on our end, so we would appreciate if you let us know how it goes on your end after the upgrade.

Thanks

JaneSjs commented 4 months ago

Hello @AmirhoseinHesami, Unfortuntely, we haven't heard for you in a while. If the issue persists or you have any further questions, please feel free to reopen this thread or submit a ticket at help desk.

Thank you