Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.

[fix] reset slug counts before rendering to prevent inconsistent anchors#9

Merged
clinejm merged 4 commits intogodaddy:masterfrom
QuicheSama:fix-slugs
Aug 6, 2018
Merged

[fix] reset slug counts before rendering to prevent inconsistent anchors#9
clinejm merged 4 commits intogodaddy:masterfrom
QuicheSama:fix-slugs

Conversation

@QuicheSama
Copy link
Contributor

@QuicheSama QuicheSama commented Aug 3, 2018

It appears that re-rendering the component causes header anchor tags to be incremented. This should not happen as anchor tags should be consistent.

Note: I am working on adding a test to cover the use case, but am struggling to get it working.
It is working now!

tree.update();

assume(tree.find('#header-2')).to.have.length(0);
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I may be misunderstanding the test, but I am fairly certain this should replicate the issue. Any ideas @clinejm @dustinsavery

@QuicheSama QuicheSama changed the title [WIP - DO NOT MERGE] [fix] reset slug counts before rendering to prevent inconsistent anchors [fix] reset slug counts before rendering to prevent inconsistent anchors Aug 3, 2018
@clinejm clinejm merged commit 0669dac into godaddy:master Aug 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants