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

Fixes #38260 - Unregister duplicate event listeners for select2 #11329

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ofedoren
Copy link
Contributor

@ofedoren ofedoren commented Mar 3, 2025

What are the changes introduced in this pull request?

Some event listeners get registered multiple times, causing unnecessary calls. This change tries to make sure one of the event listeners gets registered once.

Considerations taken when implementing this change?

Easiest solution?.. Probably fixes only described issue.

What are the testing steps for this pull request?

  1. Have two organizations
  2. Go to Hosts > Create Host
  3. Change organization to the other org and back a couple of times
  4. Select content source
  5. Open the lifecycle environment select

Actual behavior:
The lifecycle environment select offers the same environments many times, depending on how many times the organization was changed in step 3.

Expected behavior:
Each environment is offered only once

@MariaAga, you might want to check this.

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.

1 participant