From 210317a143b70efc0d9788368ecded538ee26845 Mon Sep 17 00:00:00 2001 From: web-padawan Date: Mon, 19 Aug 2024 16:16:52 +0300 Subject: [PATCH] fix: propagate checkbox required attribute to input --- packages/checkbox/src/vaadin-checkbox-mixin.js | 2 +- packages/checkbox/test/dom/__snapshots__/checkbox.test.snap.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/checkbox/src/vaadin-checkbox-mixin.js b/packages/checkbox/src/vaadin-checkbox-mixin.js index 2c920105cf..41bca02b79 100644 --- a/packages/checkbox/src/vaadin-checkbox-mixin.js +++ b/packages/checkbox/src/vaadin-checkbox-mixin.js @@ -86,7 +86,7 @@ export const CheckboxMixin = (superclass) => /** @override */ static get delegateAttrs() { - return [...super.delegateAttrs, 'name', 'invalid']; + return [...super.delegateAttrs, 'name', 'invalid', 'required']; } constructor() { diff --git a/packages/checkbox/test/dom/__snapshots__/checkbox.test.snap.js b/packages/checkbox/test/dom/__snapshots__/checkbox.test.snap.js index 7f6f89cffe..2514d2af01 100644 --- a/packages/checkbox/test/dom/__snapshots__/checkbox.test.snap.js +++ b/packages/checkbox/test/dom/__snapshots__/checkbox.test.snap.js @@ -195,6 +195,7 @@ snapshots["vaadin-checkbox host required"] =