8000 check directive bound status in v-model listener (fix #2023) · htylab/vue@f9bbd20 · GitHub
[go: up one dir, main page]

Skip to content

Commit f9bbd20

Browse files
committed
check directive bound status in v-model listener (fix vuejs#2023)
1 parent eec2cdb commit f9bbd20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/directives/public/model/text.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ export default {
6060

6161
// Now attach the main listener
6262
this.listener = function () {
63-
if (composing) return
63+
if (composing || !self._bound) {
64+
return
65+
}
6466
var val = number || isRange
6567
? toNumber(el.value)
6668
: el.value

0 commit comments

Comments
 (0)
0