Panel: Allow click that opens panel to bubble

(cherry picked from commit 5e234e8ceaa160d9278960c8cac36ead3f790c17)

Closes gh-7302
Fixes gh-7301