Skip to content

Commit

Permalink
fix: propagate checkbox required attribute to input (#7672) (#7675)
Browse files Browse the repository at this point in the history
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
  • Loading branch information
vaadin-bot and web-padawan authored Aug 20, 2024
1 parent e7134fd commit c9a1c68
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 c9a1c68

Please sign in to comment.