Commit 57ce149e07867442f8a8aee5a470e19da5d3050b
1 parent
cddd259c
处理不需要防抖时输入中文消失问题;
Showing
1 changed file
with
5 additions
and
0 deletions
src/components/Common/CommonComponent/index.js
| ... | ... | @@ -101,6 +101,11 @@ export default class CommonComponent extends Component { |
| 101 | 101 | InputA = Input; |
| 102 | 102 | AutoCompleteA = AutoComplete; |
| 103 | 103 | TextAreaA = TextArea; |
| 104 | + } else { | |
| 105 | + InputNumberA = reactComponentDebounce(300)(InputNumber); | |
| 106 | + InputA = reactComponentDebounce(300)(Input); | |
| 107 | + AutoCompleteA = reactComponentDebounce(300)(AutoComplete); | |
| 108 | + TextAreaA = reactComponentDebounce(500)(TextArea); | |
| 104 | 109 | } |
| 105 | 110 | } |
| 106 | 111 | ... | ... |