Skip to content

Issue with getActive and change event #404

Description

@thekrotek

I've found a weird issue with "getActive" call when it always returns the 1st match. I added this call according to the documentation, to the "change" event. Problem is that for me change happened earlier than "active" value update here:

this.$element.data('active', val);

I solved this by triggering a custom event:

afterSelect: function(data) { $("input[name='search']").trigger("selected"); },

And then checking it the usual way:

$("input[name='search']").on("selected", function() {

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