Skip to content

The Unified and Autonomous Development Platform

fix the issue that close color picker also closes the dialog when pressing ESC

robin shen9ee92b6359f6
diff --git a/core/src/main/java/io/onedev/server/web/component/modal/modal.js b/core/src/main/java/io/onedev/server/web/component/modal/modal.js
index f74eea1157..d4db85816d 100644
--- a/core/src/main/java/io/onedev/server/web/component/modal/modal.js
+++ b/core/src/main/java/io/onedev/server/web/component/modal/modal.js
@@ -7,6 +7,7 @@ onedev.server.modal = {
if (e.keyCode == 27
&& $(".select2-drop:visible").length == 0
&& $("body>.floating").length == 0
+ && $(".sp-container:visible").length == 0
&& $(".atwho-view:visible").length == 0
&& $modal.nextAll(".modal").length == 0) {
if ($modal.find(".leave-confirm.dirty").length != 0) {