Why does 'Next Wrap' fail when the click event and target are on the same Dynamic Panel?

I set a ‘Click’ interaction on a dynamic panel with two states to ‘Set Panel State to Next’ with the ‘Wrap from last to first’ option, but it doesn’t transition from State 2 back to State 1. What could be the reason?
test.rp (48.4 KB)