Issue with Dash Collapsible Components and Table Filtering

Hi everyone,

I’m currently working on a Dash application and have encountered an issue with the interaction between collapsible components and table filters. I hope someone here might have some insights or a solution.

In my application, I am using Dash collapsible components alongside a table that has the filter feature enabled (filter_action='native'). Individually, both the collapsible component and the table filter work perfectly. However, I’ve run into a bug when combining these features.

Steps to Reproduce:

  1. Place a table with filter_action='native' inside a Dash collapsible component.
  2. Enter a value into the filter field of the table and press Enter.

Observed Behavior:

  • When I press Enter after entering a value into the filter field, the collapsible component automatically collapses. This unintended behavior seems to be triggered by the Enter key press.
  • Alternatively, if I enter a value into the filter field and click outside the box (instead of pressing Enter), the table filters correctly, and the collapsible component remains open as expected.

Both methods correctly filter the table data, but the first method (pressing Enter) incorrectly collapses the component.

Expected Behavior:

  • The collapsible component should remain open regardless of whether I press Enter or click outside the filter field after entering a value.

Package Versions:

dash==2.18.1
dash-bootstrap-components==1.6.0
dash-core-components==2.0.0
dash-html-components==2.0.0
dash-table==5.0.0

Has anyone encountered a similar issue or have any suggestions on how to prevent the collapsible component from collapsing when pressing Enter in the filter field? Any advice or pointers would be greatly appreciated.

Thank you in advance for your help!