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

@dreamworld/dw-checkbox

Package Overview
Dependencies
Maintainers
4
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dreamworld/dw-checkbox - npm Package Compare versions

Comparing version 1.2.2-dispatch-event-on-updated.1 to 1.2.2-toggle-selection-not-working-though-label.1

15

dw-checkbox.js

@@ -104,3 +104,3 @@ /**

this.alignEnd = false;
this._checked = false;
this.checked = false;
this.indeterminate = false;

@@ -110,13 +110,4 @@ this.label = "";

}
/**
* dispatch `checked-changed` event.
*/
updated(changedProps){
if(changedProps.has('checked')){
this.dispatchEvent(new CustomEvent('checked-changed', { detail: { checked: this.checked } } ));
}
}
/**
* Toggles current state of the checkbox

@@ -135,5 +126,7 @@ */

this.checked = e.target.checked;
this.dispatchEvent(new Event('checked-changed', e));
}
}
window.customElements.define('dw-checkbox', DwCheckbox);
{
"name": "@dreamworld/dw-checkbox",
"version": "1.2.2-dispatch-event-on-updated.1",
"version": "1.2.2-toggle-selection-not-working-though-label.1",
"description": "",

@@ -25,3 +25,3 @@ "main": "dw-checkbox.js",

"@dreamworld/dw-form": "1.0.1",
"@material/mwc-checkbox": "^0.6.0",
"@material/mwc-checkbox": "^0.20.0",
"lit-element": "^2.2.1"

@@ -36,4 +36,18 @@ },

"resolutions": {
"@semantic-release/npm": "5.2.0-beta.5"
"@material/mwc-formfield": "0.20.0",
"@semantic-release/npm": "5.2.0-beta.5",
"lit-element": "2.4.0",
"@material/mwc-base": "0.20.0",
"@material/base": "9.0.0-canary.1c156d69d.0",
"@material/feature-targeting": "9.0.0-canary.1c156d69d.0",
"@material/ripple": "9.0.0-canary.1c156d69d.0",
"@material/theme": "9.0.0-canary.1c156d69d.0",
"tslib": "2.0.3",
"@material/animation": "9.0.0-canary.1c156d69d.0",
"@material/dom": "9.0.0-canary.1c156d69d.0",
"lit-html": "1.3.0",
"@material/form-field": "9.0.0-canary.1c156d69d.0",
"@material/rtl": "9.0.0-canary.1c156d69d.0",
"@material/typography": "9.0.0-canary.1c156d69d.0"
}
}
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