Skip to content

Fix cancel on any step with a title#228

Merged
RobbieTheWagner merged 3 commits intomasterfrom
bug/cancel-with-title
Aug 29, 2018
Merged

Fix cancel on any step with a title#228
RobbieTheWagner merged 3 commits intomasterfrom
bug/cancel-with-title

Conversation

@chuckcarpenter
Copy link
Copy Markdown
Member

This branch changes how the title is added to the step nodes, since using innerHTML will remove any event listeners which where attached for the cancel action.

A couple new tests were added to improve coverage as well.

package.json Outdated
"lodash": "^4.17.10",
"popper.js": "^1.14.3"
"popper.js": "^1.14.3",
"sinon": "^6.1.5"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sinon should be a devDep

const element = createFromHTML(`<div class='${classes}' data-id='${this.id}' id="${this.options.idAttribute}"}>`);
const header = document.createElement('header');

if (this.options.title) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 👍

@RobbieTheWagner RobbieTheWagner merged commit 1a9a323 into master Aug 29, 2018
@RobbieTheWagner RobbieTheWagner deleted the bug/cancel-with-title branch August 29, 2018 03:07
@RobbieTheWagner RobbieTheWagner changed the title [Bug] - fix cancel on any step with a title Fix cancel on any step with a title Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants