react-bootstrap-table/react-bootstrap-table2

Add callback when editing on cell is cancelled

開放

#684 建立於 2018年11月26日

 (2 則留言) (0 個反應) (0 位負責人)JavaScript (415 個分叉)batch import
cell-editorgood first issuehelp wanted

倉庫指標

星標
 (1,249 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

In version 1.2.2 of react-bootstrap-table2-editor, it is possible to be notified when a cell enters the editing state using onStartEdit. However, if blurToSave is set to false, there is no way to determine that editing was cancelled when the user clicks away from the editing cell and the cell transitions back to a non-editing state. It would be very useful to have a onEditCancel (or some other appropriate name) callback method that could be set for this case. When blurToSave is true, all is fine as any change in focus, leads to the afterCellSave method to be called.

貢獻者指南