@material/mwc-formfield
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -46,3 +46,3 @@ /** | ||
render(): import("lit-html/lib/template-result").TemplateResult; | ||
protected labelClick: () => void; | ||
private _labelClick; | ||
} |
@@ -35,9 +35,2 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
this.mdcFoundationClass = MDCFormFieldFoundation; | ||
this.labelClick = () => { | ||
const input = this.input; | ||
if (input) { | ||
input.focus(); | ||
input.click(); | ||
} | ||
}; | ||
} | ||
@@ -71,5 +64,12 @@ createAdapter() { | ||
<slot></slot> | ||
<label class="mdc-label" @click="${this.labelClick}">${this.label}</label> | ||
<label class="mdc-label" @click="${this._labelClick}">${this.label}</label> | ||
</div>`; | ||
} | ||
_labelClick() { | ||
const input = this.input; | ||
if (input) { | ||
input.focus(); | ||
input.click(); | ||
} | ||
} | ||
} | ||
@@ -76,0 +76,0 @@ __decorate([ |
{ | ||
"name": "@material/mwc-formfield", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "", | ||
@@ -13,5 +13,5 @@ "main": "mwc-formfield.js", | ||
"@material/form-field": "^0.40.0", | ||
"@material/mwc-base": "^0.3.1", | ||
"@material/mwc-base": "^0.3.2", | ||
"@polymer/lit-element": "^0.6.2", | ||
"lit-html": "^0.12.0" | ||
"lit-html": "^0.13.0" | ||
}, | ||
@@ -18,0 +18,0 @@ "publishConfig": { |
@@ -105,7 +105,7 @@ /** | ||
<slot></slot> | ||
<label class="mdc-label" @click="${this.labelClick}">${this.label}</label> | ||
<label class="mdc-label" @click="${this._labelClick}">${this.label}</label> | ||
</div>`; | ||
} | ||
protected labelClick = () => { | ||
private _labelClick() { | ||
const input = this.input; | ||
@@ -112,0 +112,0 @@ if (input) { |
Sorry, the diff of this file is not supported yet
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
25948
+ Addedlit-html@0.13.0(transitive)
- Removedlit-html@0.12.0(transitive)
Updated@material/mwc-base@^0.3.2
Updatedlit-html@^0.13.0