Call super methods

This commit is contained in:
trading_peter 2024-08-19 22:09:03 +02:00
parent 9ee517e810
commit 11a06bb073
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@tp/tp-number-input", "name": "@tp/tp-number-input",
"version": "1.0.0", "version": "1.0.1",
"description": "", "description": "",
"main": "tp-number-input.js", "main": "tp-number-input.js",
"scripts": { "scripts": {

View File

@ -122,12 +122,16 @@ class TpNumberInput extends FormElement(EventHelpers(DomQuery(LitElement))) {
} }
firstUpdated() { firstUpdated() {
super.firstUpdated();
this.listen(this, 'click', '_onTap'); this.listen(this, 'click', '_onTap');
this.listen(this.$.innerInput, 'blur', '_onBlur'); this.listen(this.$.innerInput, 'blur', '_onBlur');
this.listen(this.$.innerInput, 'keydown', '_onKey'); this.listen(this.$.innerInput, 'keydown', '_onKey');
} }
updated(changes) { updated(changes) {
super.updated();
if (changes.has('timeMode')) { if (changes.has('timeMode')) {
this._timeModeChanged(); this._timeModeChanged();
} }