Skip to content

Fix Gis editor form in search view - #20413

Open
MoonE wants to merge 2 commits into
phpmyadmin:masterfrom
MoonE:gis-editor-form
Open

Fix Gis editor form in search view#20413
MoonE wants to merge 2 commits into
phpmyadmin:masterfrom
MoonE:gis-editor-form

Conversation

@MoonE

@MoonE MoonE commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Description

Opening the GIS editor form the search view produced an error because both 'show.bs.modal' listeners were active. (from change.ts and select.ts)

Also copying the value from the editor to the search form did not work because the editor modal which has its own form element was inside the search form element. Nested form elements are stripped away by the browser.

@MoonE
MoonE force-pushed the gis-editor-form branch from 7dc7a6d to 67810ab Compare August 9, 2026 09:59
MoonE added 2 commits August 9, 2026 12:08
There is one event listener added in change.ts and one in select.ts, but there
should only be one active at a time.

Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
HTML form elements cannot be nested, the inner form element
was silently stripped out of the dom which mean it could not be
found when searching for its id.

Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
@MoonE
MoonE force-pushed the gis-editor-form branch from 67810ab to 96d5c68 Compare August 9, 2026 10:08
@MoonE
MoonE marked this pull request as draft August 9, 2026 12:34
@MoonE
MoonE marked this pull request as ready for review August 9, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant