Skip to content

dojox/grid/_Grid::defaultUpdate() recursion error #310

@jmrkr

Description

@jmrkr

I think I found a bug in dojox/grid/_Grid::defaultUpdate() that leads to a recursion error.

I posted about it in the forums here, seeking a potential better solution (perhaps using beginUpdate/endUpdate would be better?):
https://discourse.dojo.io/t/bug-in-dojox-grid-grid/436

Basically, because defaultUpdate() doesn't flag itself as 'updating', it can continue to be called by dojox/grid/_View::hasVScrollbar() which then eventually calls hasVScrollbar, and on and on .

I've only been able to reproduce the issue when the grid contains 7 rows - for whatever reason.

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