6693 panel respect click default prevented

Fix for #6693.