Active Expansion Panel is Not Collapsible

Hi @adam -

It seems after the “active” fix, the UD expansion panel is no longer collapsible.

Crap. I’ll get this fixed.

Hi @adam -

I upgraded to 1.15.19, but it doesn’t seem to be fixed. I’m not able to open or collapse the panel - with or without active parameter.

New-UDExpansionPanelGroup -Children {

    New-UDExpansionPanel -Id "std_chg" -Title "STANDARD CHANGE REQUEST" -Children {

        New-UDTable -Data $std_chg_doc -Dense -Columns @(

            New-UDTableColumn -Property Name -Title "Name"

            New-UDTableColumn -Property LastWriteTime -Title "Last Modified"

            New-UDTableColumn -Property Download -Title "Download" -Render {

                New-UDTooltip -TooltipContent {

                    New-UDElement -tag 'div' -Content { "Download document" } -Attributes @{ style = @{ 'font-size' = '10px'; } }

                } -Content {        

                    New-CenterContent {

                        New-UDIconButton -Icon (New-UDIcon -Icon Save -Size xs) -OnClick {}

                    }

                }

            } -Align center

        )

    } -Active

    New-UDExpansionPanel -Id "how-to" -Title "HOW-TO DOCUMENTS" -Children {

        New-UDTable -Data $howto_doc -Dense -Columns @(

            New-UDTableColumn -Property Name -Title "Name"

            New-UDTableColumn -Property LastWriteTime -Title "Last Modified"

            New-UDTableColumn -Property Download -Title "Download" -Render {

                New-UDTooltip -TooltipContent {

                    New-UDElement -tag 'div' -Content { "Download document" } -Attributes @{ style = @{ 'font-size' = '10px'; } }

                } -Content {        

                    New-CenterContent {

                        New-UDIconButton -Icon (New-UDIcon -Icon Save -Size xs) -OnClick {}

                    }

                }

            } -Align center

        )

    } -Active

}

I’m not seeing this behavior.

I did adjust your example since I didn’t have the data for those tables.

    New-UDExpansionPanelGroup -Children {

        New-UDExpansionPanel -Id "std_chg" -Title "STANDARD CHANGE REQUEST" -Children {
            New-UDTypography -Text 'Content'
        } -Active

        New-UDExpansionPanel -Id "how-to" -Title "HOW-TO DOCUMENTS" -Children {
            New-UDTypography -Text 'Content'
        } -Active

    }

It doesn’t work on my end. Strange.

My UDexpansion panel is in a UDcard if that makes any difference.

[UPDATE]
Removed UDcard and its the same.

It worked now.

Deleted PSU folders and everything for the second time. Probably it wasn’t loading UD properly?

Hmmm yeah it could be. It kind of sounds like it was loading the older framework that didn’t have this fix. Glad it’s working.