Commit 58fb751c authored by Clément's avatar Clément

Merge branch 'bugfix--improve-router-querySelector' into 'master'

bugfix: improve querySelector

See merge request !6
parents e6659b18 5016b072
Pipeline #2425 passed with stage
in 28 seconds
......@@ -44,7 +44,7 @@ export default class SIBRouter extends HTMLElement {
navigate(routeName = '', resource) {
const route = this.querySelector('sib-route[name='+routeName+']');
const route = this.querySelector('sib-route[name="'+routeName+'"]');
if(!route) return; //this route is not for me!
const id = resource ? resource['@id'] : null;
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