restricted-input
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -23,3 +23,4 @@ import { StrategyInterface, StrategyOptions } from "./strategies/strategy-interface"; | ||
setPattern(pattern: string): void; | ||
static supportsFormatting(): boolean; | ||
} | ||
export = RestrictedInput; |
"use strict"; | ||
var device_1 = require("./device"); | ||
var supportsInputFormatting = require("../supports-input-formatting"); | ||
var ios_1 = require("./strategies/ios"); | ||
@@ -48,4 +49,7 @@ var android_chrome_1 = require("./strategies/android-chrome"); | ||
}; | ||
RestrictedInput.supportsFormatting = function () { | ||
return supportsInputFormatting(); | ||
}; | ||
return RestrictedInput; | ||
}()); | ||
module.exports = RestrictedInput; |
@@ -50,5 +50,2 @@ "use strict"; | ||
}); | ||
this.inputElement.addEventListener("focus", function () { | ||
_this.formatListener(); | ||
}); | ||
this.inputElement.addEventListener("paste", function (event) { | ||
@@ -55,0 +52,0 @@ _this.pasteEventHandler(event); |
{ | ||
"name": "restricted-input", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "Restrict inputs to certain valid characters (e.g. formatting phone or card numbers)", | ||
@@ -5,0 +5,0 @@ "author": "Braintree <code@getbraintree.com> (https://www.braintreepayments.com/)", |
54934
40
1119