diff options
author | Jookia <166291@gmail.com> | 2019-11-11 17:06:57 +0000 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-11-11 17:06:57 +0000 |
commit | 173da1b5aec63b6e50d266cf1888d4b97292f4ea (patch) | |
tree | 77727ff0f21d5023d09f28ffcd512daefe7cbb4b /public | |
parent | 561044e422120c7e1941480f2a6458a246465690 (diff) | |
download | gitea-173da1b5aec63b6e50d266cf1888d4b97292f4ea.tar.gz gitea-173da1b5aec63b6e50d266cf1888d4b97292f4ea.zip |
js: Revert change to click behaviour in forceSelection (#8921)
Calling .click() in forceSelection() in blur() causes a focus loop,
this needs a proper fix later but for now just revert the change.
Diffstat (limited to 'public')
-rw-r--r-- | public/js/semantic.dropdown.custom.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/semantic.dropdown.custom.js b/public/js/semantic.dropdown.custom.js index 1745869fbf..82e6efb2ec 100644 --- a/public/js/semantic.dropdown.custom.js +++ b/public/js/semantic.dropdown.custom.js @@ -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 { |