Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cancel on any step with a title #228

Merged
merged 3 commits into from
Aug 29, 2018
Merged

Conversation

chuckcarpenter
Copy link
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
@@ -50,7 +50,8 @@
"dependencies": {
"element-matches": "^0.1.2",
"lodash": "^4.17.10",
"popper.js": "^1.14.3"
"popper.js": "^1.14.3",
"sinon": "^6.1.5"
Copy link
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

@@ -138,6 +137,14 @@ export class Step extends Evented {
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
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