Browse Source

[ST24PRJ-573][결함][FRONT] 검색결과 > History back 오류

sshong 4 years ago
parent
commit
9e129b3824

+ 2 - 0
src/main/webapp/WEB-INF/views/mob/display/SearchGoodsListFormMob.html

@@ -469,6 +469,7 @@
 	var listIdx = 1;
 
 	$(window).on("pageshow", function(event) {
+		if( history.scrollRestoration ) window.history.scrollRestoration = 'manual';
 		$('#filterForm input[name=brandGroup]:checked').each(function(){
 			$(this).attr('checked', true);
 		});
@@ -496,6 +497,7 @@
 		if ( (event.originalEvent && event.originalEvent.persisted) || (window.performance && window.performance.navigation.type == 2)) {
 			$("#searchGoodsForm input:hidden[name=unisex]").remove();
 			$("#searchGoodsForm input:hidden[name=newGoods]").remove();
+			if( history.scrollRestoration ) window.history.scrollRestoration = 'manual';
 			var historyData = sessionStorage.getItem(document.location.href);
 			// console.log(historyData);
 			if(historyData!=null){