silevis / reactgrid

Add spreadsheet-like behavior to your React app

Home Page:https://reactgrid.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a way to deselect rows from code

MarcusElg opened this issue · comments

Describe the bug
After executing a custom action in the context menu I want the row to deselect automatically. After inserting a row for I update the indexes of the rows so that the new row gets a logical index (from 0 to n). This results in a different row being selected, I would rather have all rows be deselected as the action is completed.

Current behavior
Some row is still selected

Expected behavior
It should be possible to deselect from code.

This ability is necessary

Done

Thought it had been merged into master. Apparently it hasn't

It is implemented in a strange way but it works and I'll merge it only because we will release v5 and offer a hook to access reactgrid.