processwire-issues icon indicating copy to clipboard operation
processwire-issues copied to clipboard

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

Open BernhardBaumrock opened this issue 1 year ago • 0 comments

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!

BernhardBaumrock avatar Sep 01 '24 16:09 BernhardBaumrock