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

main.js adds .uk-select to all select inputs #1963

Open
BernhardBaumrock opened this issue Sep 1, 2024 · 0 comments
Open

main.js adds .uk-select to all select inputs #1963

BernhardBaumrock opened this issue Sep 1, 2024 · 0 comments
Labels

Comments

@BernhardBaumrock
Copy link

BernhardBaumrock commented Sep 1, 2024

Hey Ryan,

Unfortunately in main.js you add .uk-select to all <select> elements in the admin, but this causes issues for me:

How it should look like:

image

How it actually looks:

image

Code in question

https://github.com/processwire/processwire/blob/3cc76cc886a49313b4bfb9a1a904bd88d11b7cb7/wire/modules/AdminTheme/AdminThemeUikit/scripts/main.js#L553-L554

Request

Is that JS-hack really necessary? The way it works now it is not possible at all to place a clean select that does not get uikit styling anywhere in an InputfieldForm.

Would it be possible to at least add support for disabling this behaviour by adding something like .no-uikit to any parent?

Please note that I don't have control over the markup of that select as it comes from the tabulator library, so I'd need to add the selector to one of the parent elements!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants