Skip to content

Passing opts as second argument to find() or findAll() does not apply those opts #153

@ncalaway

Description

@ncalaway

When passing an opts object as the second argument to find() or findAll(), the opts are not applied. Using find() with an offset returns the same HTML element as not using an offset. Using findAll() with an offset and/or limit always returns all elements matching the selector, just as if no opts were passed.

This does not occur when passing opts as the third argument to the aforementioned methods. In this case, it works as expected.

When I go into the methods and console log the parameter which should be the opts, the console log shows that the value of the parameter is undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions