File tree 3 files changed +9
-6
lines changed
client/packages/lowcoder/src
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -220,11 +220,13 @@ function useCodeMirror(
220
220
const showLineNum = props . showLineNum ?? getStyle ( props . styleName ) . showLineNum ;
221
221
222
222
const handleChange = useCallback (
223
- debounce ( ( state : EditorState ) => {
223
+ ( state : EditorState ) => {
224
224
window . clearTimeout ( isTypingRef . current ) ;
225
- isTypingRef . current = window . setTimeout ( ( ) => ( isTypingRef . current = 0 ) , 100 ) ;
226
- onChange ?.( state ) ;
227
- } , 1000 )
225
+ isTypingRef . current = window . setTimeout ( ( ) => {
226
+ isTypingRef . current = 0 ;
227
+ onChange ?.( state ) ;
228
+ } , 500 ) ;
229
+ }
228
230
, [ onChange ]
229
231
) ;
230
232
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ const RatingBasicComp = (function () {
78
78
children : (
79
79
< RateStyled
80
80
count = { props . max }
81
- value = { props . value . value }
81
+ value = { value }
82
82
onChange = { ( e ) => {
83
83
props . value . onChange ( e ) ;
84
84
changeRef . current = true ;
Original file line number Diff line number Diff line change @@ -369,7 +369,8 @@ export const CompSelectionWrapper = React.memo((props: {
369
369
{ ! needResizeDetector && props . children }
370
370
{ needResizeDetector && (
371
371
< ReactResizeDetector
372
- skipOnMount
372
+ refreshMode = "debounce"
373
+ refreshRate = { 250 }
373
374
onResize = { props . onInnerResize }
374
375
observerOptions = { { box : "border-box" } }
375
376
>
You can’t perform that action at this time.
0 commit comments