File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
client/packages/lowcoder/src Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -220,11 +220,13 @@ function useCodeMirror(
220220 const showLineNum = props . showLineNum ?? getStyle ( props . styleName ) . showLineNum ;
221221
222222 const handleChange = useCallback (
223- debounce ( ( state : EditorState ) => {
223+ ( state : EditorState ) => {
224224 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+ }
228230 , [ onChange ]
229231 ) ;
230232
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ const RatingBasicComp = (function () {
7878 children : (
7979 < RateStyled
8080 count = { props . max }
81- value = { props . value . value }
81+ value = { value }
8282 onChange = { ( e ) => {
8383 props . value . onChange ( e ) ;
8484 changeRef . current = true ;
Original file line number Diff line number Diff line change @@ -369,7 +369,8 @@ export const CompSelectionWrapper = React.memo((props: {
369369 { ! needResizeDetector && props . children }
370370 { needResizeDetector && (
371371 < ReactResizeDetector
372- skipOnMount
372+ refreshMode = "debounce"
373+ refreshRate = { 250 }
373374 onResize = { props . onInnerResize }
374375 observerOptions = { { box : "border-box" } }
375376 >
You can’t perform that action at this time.
0 commit comments