Skip to content

Commit c79e2a7

Browse files
author
Igor Escobar
committed
don’t use input event when using samsung browser or old chrome versions
1 parent e94b8cd commit c79e2a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.mask.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@
512512
watchInterval: 300,
513513
watchInputs: true,
514514
// old versions of chrome dont work great with input event
515-
useInput: !/Chrome\/28/.test(window.navigator.userAgent) && eventSupported('input'),
515+
useInput: !/Chrome\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent) && eventSupported('input'),
516516
watchDataMask: false,
517517
byPassKeys: [9, 16, 17, 18, 36, 37, 38, 39, 40, 91],
518518
translation: {

0 commit comments

Comments
 (0)