Don't abuse the title attribute

This commit is contained in:
Tom MacWright
2016-03-03 13:29:47 -08:00
parent bd1d4b2b25
commit e90ffea98b
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ var App = React.createClass({
var rect = sections[i].getBoundingClientRect();
if (rect.bottom > 0) {
this.setState({
activeSection: sections[i].title
activeSection: sections[i].getAttribute('data-title')
});
return;
}