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