]> source.dussan.org Git - gitea.git/commitdiff
js: Revert change to click behaviour in forceSelection (#8921)
authorJookia <166291@gmail.com>
Mon, 11 Nov 2019 17:06:57 +0000 (17:06 +0000)
committerzeripath <art27@cantab.net>
Mon, 11 Nov 2019 17:06:57 +0000 (17:06 +0000)
Calling .click() in forceSelection() in blur() causes a focus loop,
this needs a proper fix later but for now just revert the change.

public/js/semantic.dropdown.custom.js

index 1745869fbfd03c264a2b7631135944604e5b7c08..82e6efb2ec8f81c6f62063721a9ad062fce34f92 100644 (file)
@@ -997,7 +997,7 @@ $.fn.dropdown = function(parameters) {
           ;
           if(hasSelected && !module.is.multiple()) {
             module.debug('Forcing partial selection to selected item', $selectedItem);
-            $selectedItem[0].click();
+            module.event.item.click.call($selectedItem, {}, true);
             return;
           }
           else {