UDButton behaviour broke

Hello guys,

Button attributes are not working on 2.5.2 as before. Can anyone help me to achieve the same?

I had the below code when I was using 2.3.2 and it was working. After upgrading to 2.5.2, it stopped working

if ($SetupIP -eq 'Offline')
                {
                    $LoginButton = New-UDButton -Floating -Icon sign_in
                    #$LoginButton.Attributes.target = "_blank"
                    #$LoginButton.Attributes.rel = "noopener noreferrer"
                    #$LoginButton.Attributes.href = "http://$SetupIP"
                    $LoginButton.Attributes.disabled = "true"
                    $LoginButton
                }
            else
            {
                $LoginButton = New-UDButton -Floating -Icon sign_in
                #$LoginButton.Attributes.target = "_blank"
                #$LoginButton.Attributes.rel = "noopener noreferrer"
                #$LoginButton.Attributes.href = "http://$SetupIP"
                $LoginButton
            }

Can you help me solve this issue?

Thanks in advance.

Hello @SConstantinou thank you for posting this question. I have personally not tried what you have done, however I too have had things working in previous versions, which then do not work in the latest version. If I were you I would raise this as an ISSUE on the github page. Adam is very good at fixing bugs or giving you an alternative fix to the issue. Adam has recently just got married and is currently on his honeymoon so you might not get a quick response this time. Looks like an ISSUE though if it worked fine in previous dashboard. You could also download 2.40 or 2.4.1 from the powershellgallery to see if the same thing happens in those versions…if it doesn’t then that would strengthen the case that this is an issue/bug in 2.5.2.

I opened a bug report open for this issue the other day: