jquery-form/form

Is this a bug of the delegation option?

Open

#548 建立於 2018年4月13日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)JavaScript (2,199 fork)batch import
bughelp wantedtest needed

倉庫指標

Star
 (5,209 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南