Dynamic panel state change issue

I am experiencing an issue where a Dynamic Panel stops responding to clicks after the first state change.

  1. Create a Dynamic Panel with State 1 and State 2.
  2. Add a Click or Tap interaction to the Dynamic Panel itself to change its state.

Here is the problem.

  • The first click changes the state from State 1 to State 2.
  • After that, there is no response when clicking the panel.
  • The Trace log shows no activity.

I have attached the RP file. Why does it stop working?
dynamicpanelClick.rp (58.9 KB)

The issue was caused by “Fit to Content” setting on the dynamic panel. I’m not sure why this happens, but it appears to be a bug.

That is a really helpful observation about the ‘Fit to Content’ setting. I’ve noticed that when a panel resizes dynamically, the hit area for interactions sometimes fails to recalculate properly. A quick workaround if you need to keep that setting on is to place a transparent rectangle in the background of each state to ensure the click target stays consistent.

That’s a great catch. I’ve run into similar issues with auto-resizing panels before, and it can definitely be tricky to debug when the trace log doesn’t show anything. Thanks for sharing the solution and the workaround!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.