fix to avoid infinite focus jumping across elements (if focus method called on focused element)