diff --git a/src/vaadin-checkbox-group.html b/src/vaadin-checkbox-group.html index d9e27e4..5bb96ac 100644 --- a/src/vaadin-checkbox-group.html +++ b/src/vaadin-checkbox-group.html @@ -51,7 +51,6 @@
[[helperText]] diff --git a/test/vaadin-checkbox-group_test.html b/test/vaadin-checkbox-group_test.html index 3b96835..4910a9f 100644 --- a/test/vaadin-checkbox-group_test.html +++ b/test/vaadin-checkbox-group_test.html @@ -377,6 +377,16 @@ expect(radioButtonGroupWithSlottedHelper.hasAttribute('has-helper')).to.be.false; }); + + it('should not get focus after helper click', () => { + const group = fixture('default-with-slotted-helper'); + const spy = sinon.spy(group, 'focus'); + const helper = group.querySelector('[slot="helper"]'); + + helper.click(); + + expect(spy.called).to.be.false; + }); }); });