FIX: more robust tabindex restriction on preview (PR #14425)

GitHub