Panel: Make dismissible option work on-the-fly

Fixes gh-7884
Closes gh-7890
Panel: Test reaction to manipulation of dismissible option