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