File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
client/packages/lowcoder/src/comps/comps/textInputComp Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -179,15 +179,10 @@ export const useTextInputProps = (props: RecordConstructorToView<typeof textInpu
179
179
const inputValue = { ...props . value } . value ;
180
180
181
181
useEffect ( ( ) => {
182
+ setLocalInputValue ( defaultValue ) ;
182
183
props . value . onChange ( defaultValue )
183
184
} , [ defaultValue ] ) ;
184
185
185
- useEffect ( ( ) => {
186
- if ( inputValue !== localInputValue ) {
187
- setLocalInputValue ( inputValue ) ;
188
- }
189
- } , [ inputValue ] ) ;
190
-
191
186
useEffect ( ( ) => {
192
187
if ( ! changeRef . current ) return ;
193
188
@@ -220,8 +215,7 @@ export const useTextInputProps = (props: RecordConstructorToView<typeof textInpu
220
215
propsRef . current . value . onChange ( value ) ;
221
216
propsRef . current . onEvent ( "change" ) ;
222
217
} , 1000 )
223
- ) ;
224
-
218
+ ) ;
225
219
226
220
const handleChange = ( e : ChangeEvent < HTMLInputElement > ) => {
227
221
const value = e . target . value ;
You can’t perform that action at this time.
0 commit comments