File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/dashboard/Data/Browser Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -145,8 +145,14 @@ export default class BrowserTable extends React.Component {
145145 let index = i - this . state . offset ;
146146 let obj = this . props . data [ i ] ;
147147 const currentCol = this . props . current && this . props . current . row === i ? this . props . current . col : undefined ;
148+
149+ // Needed in order to force BrowserRow to update and re-render (and possibly update columns values),
150+ // since the "obj" instance will only be updated when the update request is done.
151+ const isEditingRow = this . props . current && this . props . current . row === i && ! ! this . props . editing ;
152+
148153 rows [ index ] = < BrowserRow
149154 key = { index }
155+ isEditing = { isEditingRow }
150156 className = { this . props . className }
151157 columns = { this . props . columns }
152158 currentCol = { currentCol }
You can’t perform that action at this time.
0 commit comments