Commit 50661212 authored by Clément's avatar Clément

Merge branch 'fix/reorder-navigate' into 'master'

bugfix: navigate should be called after the data-src are updated

See merge request !16
parents 7811cbd5 28a4b838
Pipeline #2774 passed with stage
in 32 seconds
......@@ -41,12 +41,12 @@ export default class SIBRouter extends HTMLElement {
display(routeName = this.currentRouteName, resource, keepURL=false) {
for (let route of this.routes) {
if (routeName === route.name) {
route.activate(keepURL);
this.dispatchEvent(
new CustomEvent('navigate', {
detail: { route: routeName, resource },
}),
);
route.activate(keepURL);
} else {
route.hide();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment