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

The creator.onDragDropAllow event doesn't return an actual container (page or panel) as options.parent #5399

Open
JaneSjs opened this issue Apr 10, 2024 · 1 comment
Assignees
Labels
bug user issue An issue or bug reported by users.

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Apr 10, 2024

T17594 - Specialized question type: Rigid question group with panels
https://surveyjs.answerdesk.io/internal/ticket/details/T17594


To reproduce the issue, drag an element over a panel. In a console, you'll see that only page is logged.
image

The creator.onDragDropAllow should receive a page or panel as options.parent. However, the options.parent always returns page.
View Demo

@JaneSjs JaneSjs added bug user issue An issue or bug reported by users. labels Apr 10, 2024
@JaneSjs
Copy link
Contributor Author

JaneSjs commented Apr 11, 2024

In the meantime, I partially completed the task using the options.target and options.target.parent properties.

View Demo

Need to discuss this API further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug user issue An issue or bug reported by users.
Projects
None yet
Development

No branches or pull requests

2 participants