Skip to content

Conversation

@pxpm
Copy link
Contributor

@pxpm pxpm commented Oct 13, 2021

This fixes #3838

As described in the issue thread there is a problem introduced by jQuery I think that affects the select2 in some breaking way.

The problem is that the dropdown does not work inside inline create modals unless the correct parent is specified on the select2 initialization.

Note: this will probably be fixed in some future version of select2/jquery, or we migth take other direction that does not rely on this dependencies.

@tabacitu can you please take a look at this and give it a try in your browsers ? I tested in latest chrome for win.

Best,
Pedro

@scrutinizer-notifier
Copy link

The inspection completed: No new issues

@tabacitu tabacitu assigned tabacitu and unassigned tabacitu Oct 18, 2021
Copy link
Member

@tabacitu tabacitu left a comment

Choose a reason for hiding this comment

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

I'm not "happy" about all the conditionals but... if it's what we've got to do... we've got to do it. The code is clean, nothing to improve in my opinion, just... not ideal, you know? 😅

@promatik could you please thoroughly test this and give the final thumbs-up?

Copy link
Contributor

@promatik promatik left a comment

Choose a reason for hiding this comment

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

Great work @pxpm, and the fix was not that bad/messy 🙌
I tested on Chrome, Firefox and Edge, it works everywhere.

@promatik promatik assigned tabacitu and unassigned promatik Oct 23, 2021
@tabacitu tabacitu merged commit 9a51ee7 into master Oct 25, 2021
@tabacitu tabacitu deleted the container-inline-fix branch October 25, 2021 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Select2 is not clickable with inline creation modal

5 participants