Skip to content

grid and edit/form, added line cannot be selected properly on grid #2629

@pcarraca

Description

@pcarraca

Short description
grid and edit/form:
added line cannot be selected properly on grid

What is current behavior

  1. grid, add line. Add new line on form
  2. the new line is visible on grid
  3. the new line cannot be selected

What is desired behavior
should be selectable

Link to jsfidle/codepan with sample code
line 11707 of w2ui-2.0.es6.js
if (this.searchData.length !== 0 || (index + 1 >= this.last.range_start && index + 1 <= this.last.range_end)) {
tests again grid last.range_end which is only updated on reload
if we add a previous new line:
this.last.range_end = this.records.length
then it works

Steps to reproduce or sample

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions