Hello, I just came across a problem with editable cell. I need to attach a class method to hook beforeSaveCell, intending to dispatch an action to call backend API. Then I suddenly found that there is no way to reject cell edit change, although the function returns false
In this case, the cell edit update is prevented if the callback is explicitly declared inside option. It works properly.
But in these two cases, the hook is still triggered, but the cell is still saved even when returned value is false. Is there a bug or I do anything wrong? Please recommend for me. Thank you
Hello, I just came across a problem with editable cell. I need to attach a class method to hook
beforeSaveCell
, intending to dispatch an action to call backend API. Then I suddenly found that there is no way to reject cell edit change, although the function returnsfalse
In this case, the cell edit update is prevented if the callback is explicitly declared inside option. It works properly.
But in these two cases, the hook is still triggered, but the cell is still saved even when returned value is
false
. Is there a bug or I do anything wrong? Please recommend for me. Thank you