Details: Open ancestor details elements and tabpanels when setfocus event is triggered inside

Fixes #6393