The Unified and Autonomous Development Platform
fix: Inplace field editor can't be typed into when issue is opened in a board modal
Robin Shena037f5532840
diff --git a/server-core/src/main/java/io/onedev/server/web/component/floating/floating.js b/server-core/src/main/java/io/onedev/server/web/component/floating/floating.jsindex 0e63e5d4dc..e4f3048410 100644--- a/server-core/src/main/java/io/onedev/server/web/component/floating/floating.js+++ b/server-core/src/main/java/io/onedev/server/web/component/floating/floating.js@@ -3,6 +3,11 @@ onedev.server.floating = {var $floating = $("#" + floatingId);$floating.data("closeCallback", closeCallback);$floating.data("animation", animation);+ // Floating panels live under body, outside the modal that opened them.+ // Keep Bootstrap's modal focus handler from stealing focus from their inputs.+ $floating.on("focusin", function(e) {+ e.stopPropagation();+ });$floating.data("mouseUpOrTouchStart", function(e) {if ($(".flatpickr-calendar.open").length == 0diff --git a/server-core/src/main/java/io/onedev/server/web/editable/editable.css b/server-core/src/main/java/io/onedev/server/web/editable/editable.cssindex a789b7c914..b190522200 100644--- a/server-core/src/main/java/io/onedev/server/web/editable/editable.css+++ b/server-core/src/main/java/io/onedev/server/web/editable/editable.css@@ -184,9 +184,17 @@.inplace-property-edit {width: 300px !important;- border-radius: 0 !important;box-shadow: none !important;}+/* Square the dropdown join only when the property reaches the panel edge. */+.inplace-property-edit:has(>.content>form>.property:last-child .select2-container--open.select2-container--below) {+ border-bottom-left-radius: 0;+ border-bottom-right-radius: 0;+}+.inplace-property-edit:has(>.content>form>.property:first-child .select2-container--open.select2-container--above) {+ border-top-left-radius: 0;+ border-top-right-radius: 0;+}.select2-dropdown.string-list .select2-results__message,.select2-dropdown.string-list .loading-results {display: none;