Skip to content

Commit

Permalink
fix(url-sync): reverting back to using change event (#2183)
Browse files Browse the repository at this point in the history
This reverts the behaviour of the URL sync to using the `change` event.
Unfortunately it reverts back the state prior to fixing #2105. However
this behavior was introduced on purpose with #1015

Fixes #2173 #2171
  • Loading branch information
bobylito authored Jun 7, 2017
1 parent 6054e4b commit 07f4be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/url-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class URLSync {
if (this.firstRender) {
this.firstRender = false;
this.onHistoryChange(this.onPopState.bind(this, helper));
helper.on('search', state => this.renderURLFromState(state));
helper.on('change', state => this.renderURLFromState(state));
}
}

Expand Down

0 comments on commit 07f4be0

Please sign in to comment.