Closed (fixed)
Project:
Select2 Boxes
Version:
8.x-1.0-alpha3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jul 2019 at 11:35 UTC
Updated:
28 Nov 2019 at 23:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
matsbla commentedI don't know how webform works. There is no specific integration for it with this module.
As a workaround you can enable select2 for all dropdowns, go to

/admin/config/user-interface/select2boxesand select "Enable select2 widgets for all dropdown and multiselect lists":Hope this helps
Comment #3
denis.dorosh commentedHi, thnx. But it's problem not with webform module, problem with jQuery ui dialog. How i understand, function wich apply Selec2 to select elements can't run inside ui Dialog.
for ex. if i open ui Dialog, there no select2, close dialog and open again, everything is ok.
Comment #4
denis.dorosh commentedComment #5
matsbla commentedDo you mean this module?
https://www.drupal.org/project/jquery_ui_dialog
Comment #6
denis.dorosh commentedi mean this func
https://befused.com/drupal/modal
Comment #7
matsbla commentedOkay thanks
Comment #8
denis.dorosh commentedHi. do you have any news ? maybe you can give me some idea how it can be fixed and i'll try to make some patch?
Comment #9
matsbla commentedIm not working on this issue, feel free to submit a patch if you find a solution for it.
Comment #10
sergei_semipiadniy commentedHi @dorian76453
I tried to reproduce a bug using fresh Drupal instance with Bartik theme (8.7.10), select2boxes (1.0-alpha3) and webform (5.5) and got no result.
Please could you describe a bit detailed steps to reproduce.
Regards!
Comment #11
sergei_semipiadniy commentedFinally, found the reason of an issue - default css rule for .ui-dialog class
z-index: 1260;.You can find it in dialog.css file in core themes.
Also attached screens illustrate how z-index impact on select2 element.
Solution - select2 element must have z-index value more than .ui-dialog element has.
Patch enclosed.
Regards!
Comment #13
matsbla commentedIt works great, thanks!