Skip to content

onSelectAjaxData css selector fix #60

@ignaciomdominguez

Description

@ignaciomdominguez

Hi, excelent plugin.
I'm using jquery 3.x and bootstrap 3.3.7 and I found that when I use onSelectAjaxData event, invalid data is returned.
I try to change css selector from this...

        if (this.options.onSelectAjaxData) {
            this.options.onSelectAjaxData({
								data: this.ajax.data[ this.$menu.find(".active a").index() ]
            });
        }

... to this ...

        if (this.options.onSelectAjaxData) {
            this.options.onSelectAjaxData({
								data: this.ajax.data[ this.$menu.find("li.active").index() ]
            });
        }

... and now is working fine.
I hope this will be helpful and if not just discard it.
Thanks
Ignacio

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