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 #38177 - remove select2('destroy') for non select2 item #10429

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

MariaAga
Copy link
Member

.matcher_key is very specifically not a select2 item. this causes error in the console and error with loading select2 for the rest of the page ( the page is /salt/salt_variables/new)

<%= select_tag '', nil, :class => 'matcher_key without_select2', :onchange => 'tfm.lookupKeys.matcherKeyChanged(this)' %>
activate_select2($(field).not('.matcher_key'));

@github-actions github-actions bot added the Legacy JS PRs making changes in the legacy Javascript stack label Jan 30, 2025
@evgeni
Copy link
Member

evgeni commented Jan 30, 2025

Tested via theforeman/foreman_salt#214 \o/

@evgeni evgeni merged commit 24634a9 into theforeman:develop Jan 31, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Legacy JS PRs making changes in the legacy Javascript stack
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants