3
3
* properties to Elements.
4
4
*/
5
5
6
-
import { looseEqual, looseIndexOf } from 'shared/util'
6
+
import { looseEqual, looseIndexOf, makeMap } from 'shared/util'
7
7
import { warn, isAndroid, isIE9, isIE, isEdge } from 'core/util/index'
8
8
9
+
const isTextInputType = makeMap('text,password,search,email,tel,url')
10
+
9
11
/* istanbul ignore if */
10
12
if (isIE9) {
11
13
// http://www.matts411.com/post/internet-explorer-9-oninput/
@@ -28,7 +30,7 @@ export default {
28
30
if (isIE || isEdge) {
29
31
setTimeout(cb, 0)
30
32
}
31
-
} else if (vnode.tag === 'textarea' || el.type === 'text' || el.type === 'password') {
33
+
} else if (vnode.tag === 'textarea' || isTextInputType(el.type)) {
32
34
el._vModifiers = binding.modifiers
33
35
if (!binding.modifiers.lazy) {
34
36
// Safari < 10.2 & UIWebView doesn't fire compositionend when
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4