shipshapecode / shipshapecode/shepherd
Setting a blur advanceOn listener skips the next input
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13.8k
- Forks
- 658
- Avg merge
- 4d 5h
- Merged PRs (30d)
- 15
Description
We've got an issue where we have a form with a few inputs. When I have a few steps configured like so:
id: 'example-step',
text: 'If you click on name, and hit tab it will skip <code>#email</code> ',
attachTo: {
element: '#name',
on: 'bottom'
},
advanceOn: {
"selector": "#name",
"event": "blur"
}
});
It simply skips over the next input when I have the first input focused and hit tab.
I've created this really simple Codepen to replicate the problem: https://codepen.io/codeheir/pen/mdqrBwg
Are there any workarounds for this?
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 reproduction and trace how the advanceOn listener handles a blur event when focus moves with Tab. Confirm the behavior with the example step and form inputs; done means advancing on blur no longer skips the next input.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100