Skip to content

TestQuestionPool 47194: Fix LongMenuQuestion Answers Modal#11489

Open
thojou wants to merge 1 commit intoILIAS-eLearning:release_11from
thojou:bugfix/11/47194-long-menu-answers-modal
Open

TestQuestionPool 47194: Fix LongMenuQuestion Answers Modal#11489
thojou wants to merge 1 commit intoILIAS-eLearning:release_11from
thojou:bugfix/11/47194-long-menu-answers-modal

Conversation

@thojou
Copy link
Copy Markdown
Contributor

@thojou thojou commented Apr 28, 2026

See https://mantis.ilias.de/view.php?id=47194

The LongMenuQuestion points correction rendered the lightbox modal inside the surrounding property form. Since the lightbox close button uses its own dialog form, this produced invalid nested form markup and caused browsers to repair the DOM differently for the first and following modals. This moves the answers modal out of the parent form via getContentOutsideFormTag() while keeping the show button in the correction input markup.

@thojou thojou added bugfix php Pull requests that update Php code labels Apr 28, 2026
See https://mantis.ilias.de/view.php?id=47194

The LongMenuQuestion points correction rendered the lightbox modal inside the
surrounding property form. Since the lightbox close button uses its own
dialog form, this produced invalid nested form markup and caused browsers
to repair the DOM differently for the first and following modals.
This moves the answers modal out of the parent form via
`getContentOutsideFormTag()` while keeping the show button in the correction
input markup.
@thojou thojou force-pushed the bugfix/11/47194-long-menu-answers-modal branch from 8baf84a to b984c47 Compare April 28, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants