Skip to content

Problem with tables, $getChildren searches only immediate descendants #20

@slamarca

Description

@slamarca

Hi, I downloaded version 0.9.9 to use in my site. First of all, thanks for the good work!

Now, on to the problem. I used your plugin to setup a sortable table using the example (table.js), but the insertion pointer didn't work properly, going always to the end of the table. Lurking in the code I found that in getItemDimensions function the $getChildren call returned an empty array. It seems to me that when you have a table-tbody-tr .... arrangement $getChildren tries to get 'tr' elements immediately under the 'table' element (as pointed to by the 'el' property in the first argument to the function). In the plugin setup (as indicated by the example) I set the 'containerSelector' option to a 'tbody' tag, so I substituted this.option.containerSelector to this.el as first argument to $getChildren and now all works like a charm!

It's ok for my needs, surely you will investigate better into this issue (if you think this is the case).

Thanks again,
Sergio La Marca
Italy

PS: Maybe a duplicate issue? I read the closed issues after writing this message :(

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