code: function focusFirst() {
        const controls = node.queryAll('input,select,button,textarea,*[contentEditable=true]').
          filter(inputNode => getStyles(inputNode).display !== 'none');
        if (controls.length) {
          controls[0].focus();
        }
      }
docs: Focus first input