File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,15 @@ export default {
88
88
}
89
89
} ,
90
90
methods : {
91
+ onBlur ( e ) {
92
+ // fix this isssue: https://github.com/vueComponent/ant-design-vue/issues/3816
93
+ // reference: https://github.com/vuejs/vue/issues/5847 and https://github.com/vuejs/vue/issues/8431
94
+ this . $forceUpdate ( ) ;
95
+
96
+ const { blur } = getListeners ( this ) ;
97
+ blur && blur ( e ) ;
98
+ } ,
99
+
91
100
focus ( ) {
92
101
this . $refs . input . focus ( ) ;
93
102
} ,
@@ -152,6 +161,7 @@ export default {
152
161
keydown : handleKeyDown ,
153
162
input : handleChange ,
154
163
change : noop ,
164
+ blur : this . onBlur ,
155
165
} ,
156
166
class : getInputClassName ( prefixCls , size , disabled ) ,
157
167
ref : 'input' ,
@@ -196,6 +206,7 @@ export default {
196
206
input : this . handleChange ,
197
207
keydown : this . handleKeyDown ,
198
208
change : noop ,
209
+ blur : this . onBlur ,
199
210
} ,
200
211
} ;
201
212
return < TextArea { ...textareaProps } ref = "input" /> ;
You can’t perform that action at this time.
0 commit comments