I'm seeing a couple issues:

  1. jQuery.select2() is not a valid JS function when the modal is first loaded. Seems to be some kind of JS loading order going wrong. If I close the modal and re-open it, it works all times except for that very first time.
  2. Some z-index errors with results not showing up. May need to add some CSS to help fix.

Comments

Dave Reid created an issue. See original summary.

dave reid’s picture

Issue summary: View changes
dave reid’s picture

Issue summary: View changes

Actually issue #1 was just related to the minimum_single variable so it doesn't seem to be an actual bug.

The modal z-index issue is realted to https://select2.org/troubleshooting/common-problems#select2-does-not-fun... but I cannot get the dropdownParent to work properly because the HTML is attached inside the modal contents independently. Can we react to the dialog being opened instead, or having its contents ready instead of the attach() method being used?

dave reid’s picture

Title: Fix compatibility with layout_builder_modal » Fix compatibility with jQuery UI modal zindex
StatusFileSize
new479 bytes

This isn't the best fix because this ends up putting the select2 above other things like the toolbar. But at least this gets it working for now until I can figure out how to use the dropdownParent properly.

dave reid’s picture

  • Dave Reid committed 01da220 on 8.x-1.x
    Issue #3091977 by Dave Reid, adam-delaney: Fixed compatibility with...
dave reid’s picture

Status: Active » Needs work

.

dave reid’s picture

StatusFileSize
new309 bytes

Turns out CKEditor modals have a higher z-index than the default jQuery UI modals. We should use the value of CKEDITOR.config.baseFloatZIndex + 2, which is 10002.

  • Dave Reid committed 927a496 on 8.x-1.x
    Issue #3091977 by Dave Reid, adam-delaney: Fix compatibility with...
matthand’s picture

Status: Needs work » Closed (outdated)

Closing this bug report since CKEditor4 is no longer supported. We cannot reproduce in CKEditor5.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.