Skip to content

Is this a bug of the delegation option? #548

Open
@giovannipds

Description

@giovannipds

Description:

Trying the delegation option today I've got stuck into a thing where the option wasn't following my lead, so I'm open this to get sure if that's really consider a bug or not.

Expected Behavior:

The ajaxForm would normally work if any of the forms were removed and re-appended to DOM.

Actual behavior:

The delegation option doesn't obey to the jQuery selector and overwrite the forms that came before.

Versions:

jQuery: 3.3.1 and probably others;
Browsers: Chrome and probably others.

Demonstration

Link to demonstration of issue in CodePen.

Steps to reproduce:

Just click on the buttons.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions