How to Remove New-UDMuChip Element?

Hello,

I would like to delete the chip element created with bellow code when I click on it but nothing happen.

Any idea of what i’m doing wrong ?

Thank you or your help.

`New-UDMuChip -Label “test” -Id “chiptest” -OnClick {} -OnDelete {

       Remove-UDElement -Id "chiptest"

}`

Some components in v2 do not support the *-UDElement cmdlets. You could try this:

New-UDElement -Tag 'div' -Id 'parent' -Content {
     New-UDMuChip -Label “test” -Id “chiptest” -OnClick {} -OnDelete {
            Remove-UDElement -Id "parent"
     }
}

v3 Elements will support these features.