Skip to content

Difference between blur and change? #251

@dmuldoon

Description

@dmuldoon

When I double click on a cell in an editable grid it becomes editable. When I complete my edit, if I press Enter the grid is updated just as I'd expect. If instead I tab to the next cell, my onRowUpdated callback is invoked (again, as I'd expect) and all underlying data structures are updated appropriately but the grid still displays the previous value. My theory was that React did not detect the change and thus the full rendering was short circuited somewhere but I did add a key to my row, e.g.,:

<ReactDataGrid.Row key={row.id} ref="row" {...this.props}/>

Is this a bug? A feature? Is there any control over which event makes the cell editable? Double-click vs. click, etc.?

Side note - I'm using a custom row renderer as described here:

#249

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions