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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#62486] fix range update
Eric Schubertb024762b0242
diff --git a/frontend/src/stimulus/controllers/pattern-input.controller.ts b/frontend/src/stimulus/controllers/pattern-input.controller.tsindex 1a92cf164aa..66f40d2745d 100644--- a/frontend/src/stimulus/controllers/pattern-input.controller.ts+++ b/frontend/src/stimulus/controllers/pattern-input.controller.ts@@ -115,13 +115,13 @@ export default class PatternInputController extends Controller {}}+ this.setRange();+// close the suggestionsif (['Escape', 'ArrowLeft', 'ArrowRight', 'End', 'Home'].includes(event.key)) {this.clearSuggestionsFilter();this.sanitizeContent();}-- this.setRange();}input_change():void {@@ -137,9 +137,6 @@ export default class PatternInputController extends Controller {this.filterSuggestions(word);}- this.tagInvalidTokens();- this.sanitizeContent();-// This resets the cursor position without changing it.// It is necessary because chromium based browsers try to// retain styling and adds an unwanted <font> tag,@@ -150,7 +147,10 @@ export default class PatternInputController extends Controller {selection.removeAllRanges();selection.addRange(range);}+this.setRange();+ this.tagInvalidTokens();+ this.sanitizeContent();}input_mouseup() {