code: function setFocus() {
  	  var element = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  	  var tabFocus = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  
  	  if (!is$1.element(element)) {
  	    return;
  	  } // Set regular focus
  
  
  	  element.focus({
  	    preventScroll: true
  	  }); // If we want to mimic keyboard focus via tab
  
  	  if (tabFocus) {
  	    toggleClass(element, this.config.classNames.tabFocus);
  	  }
  	}
docs: Set focus and tab focus class