shipshapecode / shipshapecode/shepherd

Setting a blur advanceOn listener skips the next input

Open
#1,793 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.