Maybe grid
in your case is not grid instance, but a wrapper, so you need to get instance from it.
maybe this is some weird context problem and grid is not available inside setTimeout callback function. I am not sure how React handles such cases and how grid
was defined.
Would be nice to get a runnable test case to debug it and understand the reason.
You can also try to call grid.features.cellEdit.cancelEditing()