2
0
mirror of https://github.com/esiur/iui.git synced 2025-05-06 06:42:58 +00:00
This commit is contained in:
Ahmed Zamil 2021-04-23 12:11:07 +03:00
parent 4a79acc6ff
commit fab9e186c9
2 changed files with 19 additions and 17 deletions

View File

@ -2617,12 +2617,12 @@ html[dir='rtl'] .multiselect-list-remove {
overflow: hidden; overflow: hidden;
} }
.link .link
{ {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
display: block; display: block;
cursor: pointer;
} }
.button:after, .ripple:after, .link:after{ .button:after, .ripple:after, .link:after{

View File

@ -155,20 +155,22 @@ export default IUI.module(class Navbar extends IUIElement
return false; return false;
if (this.private instanceof Function) if (this.private instanceof Function)
{ {
try{ try{
if (this.private(r)) if (this.private(r))
{ {
return false; return false;
} }
} catch(ex){ } catch(ex){
console.log(ex); console.log(ex);
debugger; debugger;
} }
return true; return true;
} }
});
return true;
});
const appendRoutes = (routes, level, container) => { const appendRoutes = (routes, level, container) => {
for (var i = 0; i < routes.length; i++) { for (var i = 0; i < routes.length; i++) {
@ -193,7 +195,7 @@ export default IUI.module(class Navbar extends IUIElement
item.appendChild(link); item.appendChild(link);
container.appendChild(item); container.appendChild(item);
this._list.push(item); self._list.push(item);
let subRoutes = filterRoutes(routes[i].routes); let subRoutes = filterRoutes(routes[i].routes);
@ -236,7 +238,7 @@ export default IUI.module(class Navbar extends IUIElement
created() { created() {
if (!this.hasAttribute("manual")) if (!this.hasAttribute("manual"))
window.router.on("created", this.build); window.router.on("created", ()=>this.build());
window.router.on("navigate", (e) => { window.router.on("navigate", (e) => {