Comparing version 0.8.8 to 0.8.9
{ | ||
"name": "material", | ||
"version": "0.8.8", | ||
"version": "0.8.9", | ||
"description": "A lightweight implementation of Material Design Components for the web - ES6", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -85,4 +85,3 @@ import EventEmitter from './mixin/emitter' | ||
case 'label': | ||
if (!this.ui.label) this.buildLabel() | ||
this.ui.label.innerHTML = value | ||
this.setLabel(value) | ||
break | ||
@@ -130,3 +129,5 @@ case 'text': | ||
case 'label': | ||
return this.label?.innerHTML ?? this.element.value | ||
return this.getText() | ||
case 'text': | ||
return this.getText() | ||
default: | ||
@@ -137,2 +138,10 @@ return this.element.value | ||
getText () { | ||
if (this.ui.label) { | ||
return this.ui.label.innerHTML | ||
} else { | ||
return this.element.innerHTML | ||
} | ||
} | ||
disable () { | ||
@@ -139,0 +148,0 @@ this.element.disabled = true |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
471365
11109