Compare commits
No commits in common. "d4e9235deb249bf8aacfdbedc03120fd8a579a54" and "1ec658dfef86d08dbc310e6df7665a05e771fcc0" have entirely different histories.
d4e9235deb
...
1ec658dfef
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tp/tp-button",
|
"name": "@tp/tp-button",
|
||||||
"version": "1.3.0",
|
"version": "1.2.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "tp-button.js",
|
"main": "tp-button.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -123,8 +123,8 @@ class TpButton extends EventHelpers(LitElement) {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
return html`
|
return html`
|
||||||
<div class="wrap" part="wrap">
|
<div class="wrap">
|
||||||
<div class="label" part="label">
|
<div class="label">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
${this.extended ? html`
|
${this.extended ? html`
|
||||||
@ -200,10 +200,6 @@ class TpButton extends EventHelpers(LitElement) {
|
|||||||
this.unlisten(this, 'keypress', '_keyPressed');
|
this.unlisten(this, 'keypress', '_keyPressed');
|
||||||
}
|
}
|
||||||
|
|
||||||
firstUpdated() {
|
|
||||||
this.listen(this, 'keypress', '_keyPressed');
|
|
||||||
}
|
|
||||||
|
|
||||||
shouldUpdate(changes) {
|
shouldUpdate(changes) {
|
||||||
if (changes.has('submit') && this.submit) {
|
if (changes.has('submit') && this.submit) {
|
||||||
this.extended = true;
|
this.extended = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user