lib: Remove all focus after opening a dialog
lib: Remove all focus after opening a dialog

When creating a React dialog, remove all focus on elements. Otherwise
it is possible for example to trigger a button to open the dialog
multiple times in succession.

Reviewed-by: Lars Karlitski <3318dc5ce3e4fb7c28a0b841b6801c884e1d0896@karlitski.net>

harishanand95/cockpit,mareklibra/cockpit,xhad/cockpit,andreasn/cockpit,cockpit-project/cockpit,cockpit-project/cockpit,cockpituous/cockpit,mvollmer/cockpit,larskarlitski/cockpit,michalskrivanek/cockpit,harishanand95/cockpit,petervo/cockpit,mvollmer/cockpit,moraleslazaro/cockpit,SotolitoLabs/cockpit,cockpit-project/cockpit,stefwalter/cockpit,andreasn/cockpit,arilivigni/cockpit,arilivigni/cockpit,SotolitoLabs/cockpit,larsu/cockpit,cockpituous/cockpit,dperpeet/cockpit,SotolitoLabs/cockpit,martinpitt/cockpit,stefwalter/cockpit,petervo/cockpit,michalskrivanek/cockpit,cockpit-project/cockpit,Scribery/cockpit,Scribery/cockpit,harishanand95/cockpit,harishanand95/cockpit,dperpeet/cockpit,deryni/cockpit,harishanand95/cockpit,moraleslazaro/cockpit,larskarlitski/cockpit,mareklibra/cockpit,sgallagher/cockpit,mareklibra/cockpit,cockpituous/cockpit,larsu/cockpit,larskarlitski/cockpit,martinpitt/cockpit,petervo/cockpit,larskarlitski/cockpit,michalskrivanek/cockpit,mvollmer/cockpit,andreasn/cockpit,sgallagher/cockpit,sgallagher/cockpit,larskarlitski/cockpit,Scribery/cockpit,larsu/cockpit,petervo/cockpit,xhad/cockpit,arilivigni/cockpit,Scribery/cockpit,vanloswang/cockpit,vanloswang/cockpit,michalskrivanek/cockpit,dperpeet/cockpit,mareklibra/cockpit,garrett/cockpit,xhad/cockpit,Scribery/cockpit,Scribery/cockpit,deryni/cockpit,SotolitoLabs/cockpit,vanloswang/cockpit,garrett/cockpit,stefwalter/cockpit,mareklibra/cockpit,harishanand95/cockpit,martinpitt/cockpit,SotolitoLabs/cockpit,mareklibra/cockpit,martinpitt/cockpit,andreasn/cockpit,vanloswang/cockpit,sgallagher/cockpit,dperpeet/cockpit,vanloswang/cockpit,petervo/cockpit,deryni/cockpit,stefwalter/cockpit,sgallagher/cockpit,larskarlitski/cockpit,arilivigni/cockpit,andreasn/cockpit,stefwalter/cockpit,SotolitoLabs/cockpit,moraleslazaro/cockpit,mareklibra/cockpit,larsu/cockpit,petervo/cockpit,mvollmer/cockpit,deryni/cockpit,michalskrivanek/cockpit,garrett/cockpit,moraleslazaro/cockpit,vanloswang/cockpit,mvollmer/cockpit,cockpituous/cockpit,xhad/cockpit,larsu/cockpit,vanloswang/cockpit,sgallagher/cockpit,Scribery/cockpit,moraleslazaro/cockpit,cockpituous/cockpit,garrett/cockpit,petervo/cockpit,harishanand95/cockpit,arilivigni/cockpit,deryni/cockpit,dperpeet/cockpit,cockpit-project/cockpit,larskarlitski/cockpit,xhad/cockpit,xhad/cockpit,michalskrivanek/cockpit,michalskrivanek/cockpit,cockpituous/cockpit,arilivigni/cockpit,stefwalter/cockpit,martinpitt/cockpit,deryni/cockpit,moraleslazaro/cockpit,arilivigni/cockpit,sgallagher/cockpit,garrett/cockpit,SotolitoLabs/cockpit,moraleslazaro/cockpit,deryni/cockpit,xhad/cockpit,stefwalter/cockpit,andreasn/cockpit,dperpeet/cockpit,dperpeet/cockpit,andreasn/cockpit,larsu/cockpit