code: function resetValidationMessage() {
    var domCache = privateProps.domCache.get(this);
  
    if (domCache.validationMessage) {
      hide(domCache.validationMessage);
    }
  
    var input = this.getInput();
  
    if (input) {
      input.removeAttribute('aria-invalid');
      input.removeAttribute('aria-describedBy');
      removeClass(input, swalClasses.inputerror);
    }
  }
docs: Hide block with validation message