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
Make sure that the datepicker is also opened when the duration field is activated twice
Henriette Dargec6bddaa9ed1c
diff --git a/frontend/src/app/shared/components/fields/edit/field-types/days-duration-edit-field.component.html b/frontend/src/app/shared/components/fields/edit/field-types/days-duration-edit-field.component.htmlindex 316ecf8f304..056ad3eb64b 100644--- a/frontend/src/app/shared/components/fields/edit/field-types/days-duration-edit-field.component.html+++ b/frontend/src/app/shared/components/fields/edit/field-types/days-duration-edit-field.component.html@@ -9,7 +9,7 @@class="inline-edit--field op-input"[ngModel]="formattedValue"(click)="onInputClick($event)"- (focus)="opened = true"+ (focus)="showDatePickerModal()"disabled="disabled"[id]="handler.htmlId"/>diff --git a/frontend/src/app/shared/components/fields/edit/field-types/days-duration-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/days-duration-edit-field.component.tsindex 36a166bc074..7234dabb497 100644--- a/frontend/src/app/shared/components/fields/edit/field-types/days-duration-edit-field.component.ts+++ b/frontend/src/app/shared/components/fields/edit/field-types/days-duration-edit-field.component.ts@@ -27,7 +27,6 @@*/import {- ChangeDetectionStrategy,Component,OnInit,} from '@angular/core';@@ -36,7 +35,6 @@ import * as moment from 'moment-timezone';@Component({templateUrl: './days-duration-edit-field.component.html',- changeDetection: ChangeDetectionStrategy.OnPush,})export class DaysDurationEditFieldComponent extends DatePickerEditFieldComponent implements OnInit {opened = false;@@ -53,7 +51,8 @@ export class DaysDurationEditFieldComponent extends DatePickerEditFieldComponentevent.stopPropagation();}- showDatePickerModal() {+ showDatePickerModal():void {+ this.updateFrameSrc();this.opened = true;}diff --git a/frontend/src/stimulus/controllers/dynamic/work-packages/dialog/preview.controller.ts b/frontend/src/stimulus/controllers/dynamic/work-packages/dialog/preview.controller.tsindex fbd464f4ad5..f3f05260671 100644--- a/frontend/src/stimulus/controllers/dynamic/work-packages/dialog/preview.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/work-packages/dialog/preview.controller.ts@@ -150,10 +150,12 @@ export abstract class DialogPreviewController extends Controller {protected focusAndSetCursorPositionToEndOfInput(field:HTMLInputElement) {field.focus();- field.setSelectionRange(- field.value.length,- field.value.length,- );+ if (field.type === 'text') {+ field.setSelectionRange(+ field.value.length,+ field.value.length,+ );+ }}abstract ensureValidPathname(formAction:string):string;