Sc_actionbar_disable macro inside OnRecord event

I am trying to understand how to use the new macro sc_actionbar_disable inside an OnRecord event of a grid.

If some condition is true for the current row I would like to disable the action associated with such row.

What I am getting is that the macro disable all the actions for all the rows of the grid and not only the action for the current row.
Is it a bug or the expected behaviour ?