Skip to content

Commit

Permalink
fix: propagate checkbox required attribute to input (#7672)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored and vaadin-bot committed Aug 20, 2024
1 parent e7134fd commit f8a48aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/checkbox/src/vaadin-checkbox-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const CheckboxMixin = (superclass) =>

/** @override */
static get delegateAttrs() {
return [...super.delegateAttrs, 'name', 'invalid'];
return [...super.delegateAttrs, 'name', 'invalid', 'required'];
}

constructor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ snapshots["vaadin-checkbox host required"] =
</div>
<input
id="input-vaadin-checkbox-3"
required=""
slot="input"
tabindex="0"
type="checkbox"
Expand Down

0 comments on commit f8a48aa

Please sign in to comment.