Hi bricks team,
If there is a dynamic data to display the number of items in a filter element, it would be very, very great.
What is the use of this?
Suppose we have a filter for size. We added this filter inside a nestable accordion. If this filter has no items, the filter is visually hidden, but the ul is still present in the DOM. On the other hand, the nestable accordion element is completely there and if we open it, it is empty inside
In fact, this new data dynamic helps us to completely hide a filter if it is empty using conditions. Even in the above example, we can easily hide the nestable accordion.
Therefore, according to the above scenario, it is enough to apply the following condition to the nestable accordion element.