Check if element has focus

Hello,

I am trying to check if an input field has focus:

this.$refs.searchField.activeElement

However this returns undefined. Any ideas why?

Warm regards,
Art