From 9c2bb7b94a0715e364fcad23e34d7800f03c1a42 Mon Sep 17 00:00:00 2001 From: Daniel Kita Date: Sat, 14 Nov 2015 10:06:01 +0100 Subject: [PATCH 1/2] Update jquery.steps.js Fix scroll --- build/jquery.steps.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/jquery.steps.js b/build/jquery.steps.js index 956b05a..bdfc6a2 100644 --- a/build/jquery.steps.js +++ b/build/jquery.steps.js @@ -1270,7 +1270,7 @@ function stepClickHandler(event) // If nothing has changed if (oldIndex === state.currentIndex) { - getStepAnchor(wizard, oldIndex).focus(); + //getStepAnchor(wizard, oldIndex).focus(); return false; } } @@ -2039,4 +2039,4 @@ var defaults = $.fn.steps.defaults = { loading: "Loading ..." } }; -})(jQuery); \ No newline at end of file +})(jQuery); From 2c1b04e5bf23d9729310cd62f8863114d9585eb4 Mon Sep 17 00:00:00 2001 From: Daniel Kita Date: Sat, 14 Nov 2015 10:26:45 +0100 Subject: [PATCH 2/2] Fix scroll on small screen --- build/jquery.steps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/jquery.steps.js b/build/jquery.steps.js index bdfc6a2..edb13d7 100644 --- a/build/jquery.steps.js +++ b/build/jquery.steps.js @@ -867,7 +867,7 @@ function refreshStepNavigation(wizard, options, state, oldIndex) oldStepAnchor.parent().addClass("done").removeClass("error")._selectAria(false); stepTitles.eq(oldIndex).removeClass("current").next(".body").removeClass("current"); currentInfo = oldStepAnchor.find(".current-info"); - currentOrNewStepAnchor.focus(); + //currentOrNewStepAnchor.focus(); } currentOrNewStepAnchor.prepend(currentInfo).parent()._selectAria().removeClass("done")._enableAria();