Remove unused code

This commit is contained in:
2022-03-13 22:03:19 +01:00
parent 7802084cf2
commit f9af97a6b8
2 changed files with 1 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@tp/tp-input",
"version": "1.0.3",
"version": "1.0.4",
"description": "",
"main": "tp-input.js",
"scripts": {

View File

@@ -310,7 +310,6 @@ class TpInput extends BaseElement {
const thisChar = String.fromCharCode(e.charCode);
if (this._isPrintable(e) && !regex.test(thisChar)) {
e.preventDefault();
this._announceInvalidCharacter('Invalid character ' + thisChar + ' not entered.');
}
}
@@ -449,10 +448,6 @@ class TpInput extends BaseElement {
}
}
_announceInvalidCharacter(message) {
this.fire('iron-announce', { text: message });
}
_optionalChanged(oldValue) {
if (oldValue === undefined) return;