kalisio / kdk

The Kalisio Development Kit
https://kalisio.github.io/kdk/
MIT License
22 stars 2 forks source link

KMenu should hide when child content is empty #680

Open claustres opened 1 year ago

claustres commented 1 year ago

For instance if a KMenu contains a component with an empty panel it will still be visible.

cnouguier commented 1 year ago

That means the KMenu is not really empty as it contains a component.

cnouguier commented 1 year ago

As the content is a prop and it is forwarded to the KPanel, we can check whether the content is empty or not. But it is the case already.

cnouguier commented 1 year ago

After investigation, there is finally content which is then hidden via the visibility mechanism on the actions