You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We implemented a custom date-picker inside a cat-dropdown. It is basically a card with a navigation that is build with cat-buttons. When clicking one of those buttons, the dropdown closes. We want the dropdown to close on outside clicks, but obviously not when clicked on anything inside.
@TimSielemann provided us with the tip, that there is an attribute in the code that works, but it feels like a workaround, so we wanted to file it as an issue to get confirmation that it is save to be used, or maybe an explanation for a better solution.
The attribute is: data-dropdown-no-close. By adding it to every button inside the dropdown content, it behaves as expected.
For reference, here is the implementation (see "CurrentRangeButton" for the dropdown definition and "Component" for the list of buttons).
The text was updated successfully, but these errors were encountered:
We implemented a custom date-picker inside a cat-dropdown. It is basically a card with a navigation that is build with cat-buttons. When clicking one of those buttons, the dropdown closes. We want the dropdown to close on outside clicks, but obviously not when clicked on anything inside.
@TimSielemann provided us with the tip, that there is an attribute in the code that works, but it feels like a workaround, so we wanted to file it as an issue to get confirmation that it is save to be used, or maybe an explanation for a better solution.
The attribute is:
data-dropdown-no-close
. By adding it to every button inside the dropdown content, it behaves as expected.For reference, here is the implementation (see "CurrentRangeButton" for the dropdown definition and "Component" for the list of buttons).
The text was updated successfully, but these errors were encountered: