Docs (4.0.0)
class TestOutputElement method

focus

Sets input focus on this element.

focus(): this

Notes

  • This method removes focus from the currently focused element if necessary, and then sends a focusin event.
  • Nothing happens if the element is already focused or if the element isn’t part of the currently rendered output (see isOutput()).

Related