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

Remove inputmode numeric and pattern due to ios compatibility issues

Oliver Günther5e5b2f1b3e41
diff --git a/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.html b/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.html
index d25dd18d89d..179d199d242 100644
--- a/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.html
+++ b/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.html
@@ -43,8 +43,6 @@
(ngModelChange)="startDateChanged$.next($event)"
[disabled]="!isSchedulable"
[showClearButton]="currentlyActivatedDateField === 'start'"
- [pattern]="datePattern"
- inputmode="numeric"
(focusin)="setCurrentActivatedField('start')"
></spot-text-field>
<button
@@ -71,8 +69,6 @@
(ngModelChange)="endDateChanged$.next($event)"
[disabled]="!isSchedulable"
[showClearButton]="currentlyActivatedDateField === 'end'"
- [pattern]="datePattern"
- inputmode="numeric"
(focusin)="setCurrentActivatedField('end')"
></spot-text-field>
<button
diff --git a/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.ts b/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.ts
index c3028de2924..4c4bbbb78a8 100644
--- a/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.ts
+++ b/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.ts
@@ -151,8 +151,6 @@ export class MultiDateModalComponent extends OpModalComponent implements AfterVi
htmlId = '';
- datePattern = '[0-9]{4}-[0-9]{2}-[0-9]{2}';
-
dates:{ [key in DateKeys]:string|null } = {
start: null,
end: null,
diff --git a/frontend/src/app/shared/components/datepicker/single-date-modal/single-date.modal.html b/frontend/src/app/shared/components/datepicker/single-date-modal/single-date.modal.html
index bd7f246e9dd..8a805f2702f 100644
--- a/frontend/src/app/shared/components/datepicker/single-date-modal/single-date.modal.html
+++ b/frontend/src/app/shared/components/datepicker/single-date-modal/single-date.modal.html
@@ -38,8 +38,6 @@
[(ngModel)]="date"
(ngModelChange)="dateChangedManually$.next()"
[showClearButton]="true"
- [pattern]="datePattern"
- inputmode="numeric"
></spot-text-field>
<button
slot="action"
diff --git a/frontend/src/app/shared/components/datepicker/single-date-modal/single-date.modal.ts b/frontend/src/app/shared/components/datepicker/single-date-modal/single-date.modal.ts
index 449072c18cc..5c3e46b9b1e 100644
--- a/frontend/src/app/shared/components/datepicker/single-date-modal/single-date.modal.ts
+++ b/frontend/src/app/shared/components/datepicker/single-date-modal/single-date.modal.ts
@@ -114,8 +114,6 @@ export class SingleDateModalComponent extends OpModalComponent implements AfterV
htmlId = '';
- datePattern = '[0-9]{4}-[0-9]{2}-[0-9]{2}';
-
date:string|null = null;
dateChangedManually$ = new Subject<void>();