DEV: prevents broken tests due to focus bubbling (PR #14223)

After a lot of debugging, I discovered that focus the row would sometimes bubble up to the document and trigger a focus through magnific-popup js code which is adding a listener on focus on the document. This would generate a blur of select-kit which might cause a close.