Skip to content

Commit

Permalink
Merge pull request #1223 from valadas/issue/1222
Browse files Browse the repository at this point in the history
Fixed a validation issue with dnn-select
  • Loading branch information
david-poindexter authored Nov 17, 2024
2 parents 4aecbbd + 34573fc commit 87dd101
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,13 @@ export class DnnSelect {
}

componentDidLoad() {
this.applySlottedItemsToSelect();
this.setFormValue();
requestAnimationFrame(() => {
var validity = this.select.validity;
var validityMessage = validity.valid ? "" : this.select.validationMessage;
this.internals.setValidity(this.select.validity, validityMessage);
this.applySlottedItemsToSelect();
this.setFormValue();
});
}

// eslint-disable-next-line @stencil-community/own-methods-must-be-private
Expand Down

0 comments on commit 87dd101

Please sign in to comment.