Product: PowerShell Universal
Version: 2026.1.6
After upgrading from 5.2.1 to 2026.1.6, I'm having an issue with New-UDSelect. The default value, nor a selected value, show in the text box anymore. When clicking the dropdown, the options are there but when clicking one it does not show the value in the text box. However, on the backend the selection is good. Clicking submit on the form passes validation and the ticket that is opened has the correct value listed. It's a front end issue, where the user cannot see any value in the box; whether it's the default value or a selected value.
Seems to be related to https://forum.devolutions.net/topics/54901/bug-new-udselectgroup
I found that if I remove my theme, the issue goes away.
My theme is Material Ui based, so I commented out all the Mui overrides from the theme file then added them back in one at a time. I found the one that is having trouble is MuiListItemText.
When you click the dropdown box to see the selections, I have the background set to a dark shade of gray and when hovering it changes to a lighter shade of gray. For contrast, I have the text color set to white "#ffffff" in MuiListItemText. When you click the dropdown box you can read the text as it's white. Normally, the text in the New-UDSelect text box remains as default, black. It's been working this way for 5 years, but now that I've upgraded to 2026.1.6 it seems the text in New-UDSelect box and the text of the selections are treated as the same color as what's in MuiListItemText. If I set MuiListItemText to a different color, I can see the default and selected values in the box, but it makes the text in the dropdown selections funky. So, it seems the text of the New-UDSelect value box and the text of the dropdown items used to be different, but now they're being seen as the same???
This is how it has been looking for the past 5 years. White text in the dropdown selections using MuiListItemText, and default/black text in the text box.
[image]
How it looks after upgrading to 2026.1.6. Notice you can't see anything in the text box.
[image]
How it looks if I change MuiListItemText to a different color, like black.
[image]
How it looks if I remove theming.
[image]
Code for the New-UDSelect
$theme = Import-PowerShellDataFile '<Full path to theme file>.psd1'
New-UDDashboard -Title 'Page Testing' -Content {
New-UDSelect -Id 'select_region' -Label 'Region:' -Option {
New-UDSelectOption -Name 'Central US' -Value 'centralus'
New-UDSelectOption -Name 'West Europe' -Value 'westeurope'
} -DefaultValue 'centralus'
} -Theme $theme
Code in my theme.psd1 file, from the overrides section.
overrides = @{
MuiListItemText = @{
primary = @{
color = '#ffffff'
fontSize = 14
fontWeight = 500
}
}# MuiListItemText
}# Overrides
Unfortunately, I learned what I needed to know about Mui 5 years ago; just enough to get this theme created. I haven't worked with it since, so I can't take the troubleshooting any further.
Seems this may be an issue with PSU, where the MuiListItemText is now being applied to both locations?
For now I can change MuiListItemText color to black, as a work around. Would this be fixed in a future PSU update, or do I need to somehow put something else in my theme file, in my Mui overrides, to have the text be different colors between the dropdown selections and the text box text?
Thanks,
Rob