Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vaadin/checkbox-group

Package Overview
Dependencies
Maintainers
0
Versions
398
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/checkbox-group - npm Package Compare versions

Comparing version 24.4.10 to 24.4.11

18

package.json
{
"name": "@vaadin/checkbox-group",
"version": "24.4.10",
"version": "24.4.11",
"publishConfig": {

@@ -42,9 +42,9 @@ "access": "public"

"@polymer/polymer": "^3.0.0",
"@vaadin/a11y-base": "~24.4.10",
"@vaadin/checkbox": "~24.4.10",
"@vaadin/component-base": "~24.4.10",
"@vaadin/field-base": "~24.4.10",
"@vaadin/vaadin-lumo-styles": "~24.4.10",
"@vaadin/vaadin-material-styles": "~24.4.10",
"@vaadin/vaadin-themable-mixin": "~24.4.10"
"@vaadin/a11y-base": "~24.4.11",
"@vaadin/checkbox": "~24.4.11",
"@vaadin/component-base": "~24.4.11",
"@vaadin/field-base": "~24.4.11",
"@vaadin/vaadin-lumo-styles": "~24.4.11",
"@vaadin/vaadin-material-styles": "~24.4.11",
"@vaadin/vaadin-themable-mixin": "~24.4.11"
},

@@ -60,3 +60,3 @@ "devDependencies": {

],
"gitHead": "7958b9490f227e72c5457ed3e6c752c6ab2691a4"
"gitHead": "1312f60a4bb0b3158428171271fb5c0d88a1b61e"
}

@@ -121,3 +121,3 @@ /**

checkValidity() {
return !this.required || this.value.length > 0;
return !this.required || Boolean(this.value && this.value.length > 0);
}

@@ -169,3 +169,3 @@

this.__addCheckboxToValue(checkbox.value);
} else if (this.value.includes(checkbox.value)) {
} else if (this.value && this.value.includes(checkbox.value)) {
checkbox.checked = true;

@@ -220,3 +220,5 @@ }

__addCheckboxToValue(value) {
if (!this.value.includes(value)) {
if (!this.value) {
this.value = [value];
} else if (!this.value.includes(value)) {
this.value = [...this.value, value];

@@ -231,3 +233,3 @@ }

__removeCheckboxFromValue(value) {
if (this.value.includes(value)) {
if (this.value && this.value.includes(value)) {
this.value = this.value.filter((v) => v !== value);

@@ -252,4 +254,4 @@ }

/**
* @param {string | null | undefined} value
* @param {string | null | undefined} oldValue
* @param {string[] | null | undefined} value
* @param {string[] | null | undefined} oldValue
* @private

@@ -259,10 +261,10 @@ */

// Setting initial value to empty array, skip validation
if (value.length === 0 && oldValue === undefined) {
if (value && value.length === 0 && oldValue === undefined) {
return;
}
this.toggleAttribute('has-value', value.length > 0);
this.toggleAttribute('has-value', value && value.length > 0);
this.__checkboxes.forEach((checkbox) => {
checkbox.checked = value.includes(checkbox.value);
checkbox.checked = value && value.includes(checkbox.value);
});

@@ -269,0 +271,0 @@

{
"$schema": "https://json.schemastore.org/web-types",
"name": "@vaadin/checkbox-group",
"version": "24.4.10",
"version": "24.4.11",
"description-markup": "markdown",

@@ -6,0 +6,0 @@ "contributions": {

{
"$schema": "https://json.schemastore.org/web-types",
"name": "@vaadin/checkbox-group",
"version": "24.4.10",
"version": "24.4.11",
"description-markup": "markdown",

@@ -6,0 +6,0 @@ "framework": "lit",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc