Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#66089] Fix Firefox caret positioning

Tobias Dillmann8fd8bd04c3f1
diff --git a/app/components/work_package_types/pattern_input.sass b/app/components/work_package_types/pattern_input.sass
index cd4469fa973..901f4e1e641 100644
--- a/app/components/work_package_types/pattern_input.sass
+++ b/app/components/work_package_types/pattern_input.sass
@@ -4,6 +4,11 @@
overflow: hidden
height: var(--control-medium-size)
+ .-browser-firefox &
+ // Must be set to prevent Firefox from displaying the caret in incorrect places.
+ // See https://bugzilla.mozilla.org/show_bug.cgi?id=904846
+ white-space: pre-wrap
+
&:focus,
&:focus-visible
border-color: var(--focus-outlineColor) !important