-
-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to know which fortunesheet is currently focused #556
Comments
This is a good question, and I dont see a method to return the currently active sheet. I still need to play around a bit to see if this info is being returned by something else. Keeping this thread open. For the second part, you can probably attach a click listener outside FS and then use the setSelection method |
Hi @sanchit3008 If we click outside of the fortunesheet how to removed the selection where my last cursor point was? I attach a click listener outside FS and then use the setSelection method but I'm getting the below error when there is one FS there is no issue with the error but if we are creating multiple FS, in the second FS onward I'm not able to update anything. ref.current?.setSelection([ { row:[], column:[] } ]); In the demo page of FS in the console I have seen the below error - ![]() Can you please guide me. |
If I understand this correctly, you want to have multiple sheets on a page. When you click outside the sheet area you want the selection to be removed.
|
Hi @sanchit3008 can you please guide how to know which fortunesheet is currently focused if single or multiple fortunesheet we added and whichever fortunesheet we edited my focus should be updated to that fortuneshhet only ? and If we click outside of the fortunesheet how to removed the selection where my last cursor point was?
The text was updated successfully, but these errors were encountered: