fixes issue where closing the 'MORE' action scrolls to the top of page.

fixes #3076
pull/3117/merge
Ducky 2016-10-27 15:07:49 +11:00 zatwierdzone przez Matt Westcott
rodzic 14af9858e9
commit 76ffc972a5
4 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -20,6 +20,7 @@ Changelog
* Fix: Header for search results on the redirects index page now shows the correct count when the listing is paginated (Nick Smith)
* Fix: `set_url_paths` management command is now compatible with Django 1.10 (Benjamin Bach)
* Fix: Form builder email notifications now output multiple values correctly (Sævar Öfjörð Magnússon)
* Fix: Closing 'more' dropdown on explorer no longer jumps to the top of the page (Ducky)
1.7 (20.10.2016)

Wyświetl plik

@ -175,6 +175,7 @@ Contributors
* Henk-Jan van Hasselaar
* alexfromvl
* Jaap Roes
* Ducky
Translators
===========

Wyświetl plik

@ -42,6 +42,7 @@ Bug fixes
* Header for search results on the redirects index page now shows the correct count when the listing is paginated (Nick Smith)
* ``set_url_paths`` management command is now compatible with Django 1.10 (Benjamin Bach)
* Form builder email notifications now output multiple values correctly (Sævar Öfjörð Magnússon)
* Closing 'more' dropdown on explorer no longer jumps to the top of the page (Ducky)
Upgrade considerations
======================

Wyświetl plik

@ -427,6 +427,8 @@ wagtail = (function(document, window, wagtail) {
_closeDropDown: function(e) {
this.state.isOpen = false;
e.stopPropagation();
e.preventDefault();
var el = this.el;
var $parent = this.$parent;
@ -474,6 +476,3 @@ wagtail = (function(document, window, wagtail) {
return wagtail;
})(document, window, wagtail);