jquery-form / jquery-form/form
Is this a bug of the delegation option?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5.1k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CodePen demonstration and reproduce the behavior by clicking the buttons with delegation enabled. Check how the selector behaves when forms are removed and re-appended; done means the delegation option respects the jQuery selector without overwriting earlier forms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100