Skip to content

Commit 352eb84

Browse files
committed
fix: input box cursor error #2207
1 parent 90131e9 commit 352eb84

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Diff for: components/input/Input.jsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ export default {
109109
callback && callback();
110110
});
111111
} else {
112-
this.$forceUpdate();
112+
// 不在严格受控
113+
// https://github.com/vueComponent/ant-design-vue/issues/2207,modal 是 新 new 实例,更新队列和当前不在同一个更新队列中
114+
// this.$forceUpdate();
113115
}
114116
},
115117
onChange(e) {

Diff for: components/input/TextArea.jsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ export default {
5252
callback && callback();
5353
});
5454
} else {
55-
this.$forceUpdate();
55+
// 不在严格受控
56+
// https://github.com/vueComponent/ant-design-vue/issues/2207,modal 是 新 new 实例,更新队列和当前不在同一个更新队列中
57+
// this.$forceUpdate();
5658
}
5759
},
5860
handleKeyDown(e) {

Diff for: webpack.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ module.exports = {
7979
resolve: {
8080
alias: {
8181
'ant-design-vue': path.join(__dirname, './components'),
82+
vue$: 'vue/dist/vue.esm.js',
8283
},
8384
extensions: ['.js', '.jsx', '.vue'],
8485
},

0 commit comments

Comments
 (0)