Remove unused code
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tp/tp-input",
|
"name": "@tp/tp-input",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "tp-input.js",
|
"main": "tp-input.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -310,7 +310,6 @@ class TpInput extends BaseElement {
|
|||||||
const thisChar = String.fromCharCode(e.charCode);
|
const thisChar = String.fromCharCode(e.charCode);
|
||||||
if (this._isPrintable(e) && !regex.test(thisChar)) {
|
if (this._isPrintable(e) && !regex.test(thisChar)) {
|
||||||
e.preventDefault();
|
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) {
|
_optionalChanged(oldValue) {
|
||||||
if (oldValue === undefined) return;
|
if (oldValue === undefined) return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user