We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 175e0a0 commit bcf749bCopy full SHA for bcf749b
packages/shared/util.js
@@ -66,13 +66,10 @@ export const isPhantomJS = UA && UA.includes &&
66
export const isEdge = UA && UA.indexOf('edge/') > 0
67
export const isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge
68
69
+// get the event used to trigger v-model handler that updates bound data
70
export function getCheckedEvent () {
71
const version = Vue.version
72
- if (semver.satisfies(version, '2.0 - 2.1.8')) {
73
- return 'change'
74
- }
75
-
76
if (semver.satisfies(version, '2.1.9 - 2.1.10')) {
77
return 'click'
78
}
@@ -81,5 +78,6 @@ export function getCheckedEvent () {
81
return isChrome ? 'click' : 'change'
82
79
83
80
+ // change is handler for version 2.0 - 2.1.8, and 2.5+
84
return 'change'
85
0 commit comments