I received error below using Angular Universal:
divElement.focus() -> focus is not a function
As far as i can see, right now, only a element "implements" (as empty function) focus method. Shouldn't it be defined on all (or almost all) element types? Here, focus and some other methods are defined on base HtmlElement: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement
Hi,
I received error below using Angular Universal:
divElement.focus() -> focus is not a function
As far as i can see, right now, only
a
element "implements" (as empty function)focus
method. Shouldn't it be defined on all (or almost all) element types? Here,focus
and some other methods are defined on base HtmlElement: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement