Skip to content

Remote forms won't execute JavaScript because of incorrect default dataFilter option #1

@tadman

Description

@tadman

There appears to be a problem with making AJAX form requests using the unobtrusive helper on forms with :remote => true set.

The line causing the problem is:

dataFilter:     function(data, type){ $element.trigger("dataFilterAjax", [data, type]); },

Since there is no default trigger, nothing is returned, and as such, no script is executed. Removing this line solves the problem but probably reduces functionality. If a default handler that implemented the correct pass-through behaviour was defined, this wouldn't be an issue.

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