Added code to reset the element on route change so that if there is a scroll bar it also gets reset.
This commit is contained in:
		@@ -46,6 +46,9 @@ IgniteTemplate.prototype.route = function (routes, showCallback = null, hideCall
 | 
			
		||||
 | 
			
		||||
        //Invoke the callback if the route matched.
 | 
			
		||||
        if (routeMatches) {
 | 
			
		||||
            //Replace the element so that the scroll position resets, if possible.
 | 
			
		||||
            this.element.parentElement.parentElement.replaceChild(this.element.parentElement, this.element.parentElement);
 | 
			
		||||
 | 
			
		||||
            //Show the route element.
 | 
			
		||||
            this.element.style.removeProperty("display");
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user