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

Deactivate Bootstrap 2 modal dialogs #4839

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

mdouchin
Copy link
Collaborator

@mdouchin mdouchin commented Oct 4, 2024

This is needed for LWC >=3.9 and the migration to bootstrap 5
This CSS addition prevents old JS scripts from making the map unusable
(example of deprecated scripts: https://github.com/3liz/lizmap-javascript-scripts/blob/master/library/ui/popup_metadata_info/popup.js )

We hide the #lizmap-modal div and sibling if it has a direct modal-header child div (Bootstrap 2)

Bootstrap 5 needs a div.modal-dialog which itself contains a div.modal-header and a div.modal-body
. In this case, the modal will not be hidden

Funded by 3Liz

@github-actions github-actions bot added this to the 3.9.0 milestone Oct 4, 2024
@mdouchin mdouchin requested review from Gustry and nworr October 4, 2024 14:42
Copy link
Member

@Gustry Gustry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice trick !

lizmap/www/assets/css/map.css Show resolved Hide resolved
Co-authored-by: Étienne Trimaille <[email protected]>
@mdouchin mdouchin merged commit 20eee3f into 3liz:master Oct 9, 2024
13 checks passed
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.

4 participants