Closed (fixed)
Project:
Modal
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jul 2019 at 06:41 UTC
Updated:
12 Dec 2019 at 14:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
thallesHi @VladimirAus, all raight?
Can you check, settings for not load the Bootstrap js on /admin/config/user-interface/modal-page/settings
Comment #3
renatog commentedYes, if you're using the Bootstrap Library you just need to mark an option (checkbox) to avoid load Modal Page's JavaScript.
Comment #4
renatog commented@vladimiraus the #2 it's correct.
Please let us know with words good for you.
Thank you so much.
Comment #5
vladimirausThanks @thalles @RenatoG.
I'm using bootstrap4 theme and it broke my site by loading both bootstrap 3 and bootstrap 4.
I removed the module as a result.
Maybe there should be a message to indicate that extra library is being used similar to what webforms do when you install them.
Comment #6
thallesYou can disable load of js of the bootstrap 3 on module settings on /admin/config/user-interface/modal-page/settings,
Can you tests this for us?
Comment #8
renatog commented#5 it's a good idea.
We can create a message to notify users to uncheck this checkbox if are using bootstrap.
#3076326: Notify users to uncheck library checkbox if are using bootstrap
What do you think @thalles?
Thanks for idea @vladimiraus
Comment #9
jncrucesI think that this issue must be reopened because the user not respond but the issue persist.
If you have an external bootstrap library the system reload it twice with some inconsistencies on the workflow.
The solution of uncheck the external library not working because there are a direct dependence between the local javascript of the module and the bootstrap library.
In my patch i separated both and created the logic in the modal_page.module to load separately.
Comment #10
renatog commentedVery good @jncruces
I check your patch and really makes sense!
Changing the issue status to needs review, but looks well for me.
Thank you so much for your help!
Comment #11
renatog commentedI applied the patch and really works well!
Good catch, @jncruces! Thank you very much!
P.s. I just changed a little detail.
From
To:
Okay?
Comment #13
renatog commentedCommitted to the dev version.
We'll put on the new release soon.
Tks