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

Add Select Web Component #2606

Merged
merged 3 commits into from
Oct 30, 2023

Conversation

sascha-karnatz
Copy link
Contributor

@sascha-karnatz sascha-karnatz commented Oct 26, 2023

What is this pull request for?

Replace default Select2 initializer with a custom component to have an easier initialization. This web component does not work on Safari, but it will gracefully fallback to the default select behavior.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

Use the same styling for selects as for Select2 - components. This will be a graceful fallback, if the Select2 component can't be rendered.
@sascha-karnatz sascha-karnatz requested a review from a team October 26, 2023 07:53
Bind the Select2 configuration with a web component to prevent initialization problems. The current solution does not work on Safari, but it will fallback to the default browser behavior.
@sascha-karnatz sascha-karnatz force-pushed the update_javascript/select branch from 065188e to 61409fd Compare October 26, 2023 20:17
This select has no advantage as a select2
@tvdeyen tvdeyen enabled auto-merge October 30, 2023 09:08
@tvdeyen tvdeyen merged commit 26a9ef9 into AlchemyCMS:main Oct 30, 2023
29 checks passed
@sascha-karnatz sascha-karnatz deleted the update_javascript/select branch November 2, 2023 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants