@brandup/ui-input 1.0.19 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/source/input.ts +3 -4
package/package.json CHANGED
@@ -21,12 +21,12 @@
21
21
  "email": "it@brandup.online"
22
22
  },
23
23
  "license": "Apache-2.0",
24
- "version": "1.0.19",
24
+ "version": "1.0.20",
25
25
  "main": "source/index.ts",
26
26
  "types": "source/index.ts",
27
27
  "dependencies": {
28
28
  "@brandup/ui": "^1.0.37",
29
- "@brandup/ui-kit": "^1.0.19"
29
+ "@brandup/ui-kit": "^1.0.20"
30
30
  },
31
31
  "files": [
32
32
  "source",
package/source/input.ts CHANGED
@@ -45,8 +45,7 @@ export abstract class InputControl<T extends InputType> extends UIElement implem
45
45
  }
46
46
 
47
47
  e.preventDefault();
48
-
49
- return false;
48
+ return;
50
49
  }
51
50
  };
52
51
 
@@ -60,7 +59,7 @@ export abstract class InputControl<T extends InputType> extends UIElement implem
60
59
  form.dispatchEvent(new SubmitEvent("submit", { submitter: form, cancelable: true }));
61
60
  }
62
61
 
63
- protected _onRenderElement(elem: HTMLElement) {
62
+ protected override _onRenderElement(elem: HTMLElement) {
64
63
  elem.classList.add(INPUT_CSS_CLASS);
65
64
 
66
65
  if (this.required)
@@ -87,7 +86,7 @@ export abstract class InputControl<T extends InputType> extends UIElement implem
87
86
  this.element?.scrollIntoView({ block: "center", inline: "center" });
88
87
  }
89
88
 
90
- destroy() {
89
+ override destroy() {
91
90
  if (this.form && this.__submitEvent)
92
91
  this.form.removeEventListener("submit", this.__submitEvent);
93
92