ref.current.selection bugs #139
-
hey, so this object is being updated only when I press another row different from the current one. it seems like an easy fix could u please fix it?> |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Thx I will look into it! |
Beta Was this translation helpful? Give feedback.
-
also, if u update the data from outside(by code or function) some row and on mouse/marker is on this row/cell its not rendering the value (it is changing the data), only when switching to other row its updates and renders the update |
Beta Was this translation helpful? Give feedback.
-
This is done on purpose, the text column uses an uncontrolled component while editing for performance. If you need a specific behavior you can create your own component. |
Beta Was this translation helpful? Give feedback.
-
Hello @Alkimay , const ref = useRef<DataSheetGridRef>(null)
useEffect(() => {
// Log selection every second
setInterval(() => {
console.log(ref.current?.selection)
}, 1000)
}, [])
return <DataSheetGrid ref={ref} ... /> Can you please provide code to showcase the issue? |
Beta Was this translation helpful? Give feedback.
Hello @Alkimay ,
I cannot reproduce this error, I assume it comes from your code. Here is what I did:
Can you please provide code to showcase the issue?