Remove unused code
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@tp/tp-input",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"description": "",
|
||||
"main": "tp-input.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user