Skip to content

ref.current.selection bugs #139

Answered by nick-keller
Alkimay asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @Alkimay ,
I cannot reproduce this error, I assume it comes from your code. Here is what I did:

  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?

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nick-keller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #137 on February 23, 2022 09:09.