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

[31094] Remove hidden overflow when dropdown opens

Oliver Günther6603e6d1b634
diff --git a/frontend/src/app/modules/fields/edit/field-types/select-edit-field.component.ts b/frontend/src/app/modules/fields/edit/field-types/select-edit-field.component.ts
index 608a8dc0a13..5b93411420f 100644
--- a/frontend/src/app/modules/fields/edit/field-types/select-edit-field.component.ts
+++ b/frontend/src/app/modules/fields/edit/field-types/select-edit-field.component.ts
@@ -158,15 +158,13 @@ export class SelectEditFieldComponent extends EditFieldComponent implements OnIn
}
public onOpen() {
- setTimeout(() => {
- jQuery(this.hiddenOverflowContainer).addClass('-hidden-overflow');
- }, 1000);
+ jQuery(this.hiddenOverflowContainer).one('scroll', () => {
+ this._autocompleterComponent.closeSelect();
+ });
}
public onClose() {
- setTimeout(() => {
- jQuery(this.hiddenOverflowContainer).removeClass('-hidden-overflow');
- }, 1000);
+ // Nothing to do
}
public onChange(value:HalResource) {