Skip to content

Commit 44b90bd

Browse files
committed
Merge pull request vuejs#725 from zhongxingdou/dev
support jQuery change event
2 parents c14410c + 97dcced commit 44b90bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/directives/model/default.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ module.exports = {
8080

8181
this.event = lazy ? 'change' : 'input'
8282
_.on(el, this.event, this.listener)
83+
if (typeof(jQuery) === 'function') {
84+
jQuery(el).on('change', this.listener)
85+
}
8386

8487
// IE9 doesn't fire input event on backspace/del/cut
8588
if (!lazy && _.isIE9) {

0 commit comments

Comments
 (0)