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

Add remark on top-layer and dialogs

Oliver Günther5fdbf13acfe5
diff --git a/lookbook/docs/patterns/03-autocompleters.md.erb b/lookbook/docs/patterns/03-autocompleters.md.erb
index c383ef24a31..b845ac0b848 100644
--- a/lookbook/docs/patterns/03-autocompleters.md.erb
+++ b/lookbook/docs/patterns/03-autocompleters.md.erb
@@ -26,6 +26,10 @@ Here are the most common options you'd pass to the autocompleter:
like `[name: searchKey, operator: '**', values: [searchText]]`.
- **appendTo**: A globally unique css selector to append the ng-select dropdown element to. Relevant for overlaying
dropdowns over other elements.
+ -
+
+**Note:** If you use an autocompleter within a primer dialog, you need to set the `appendTo` option to the ID of the dialog itself.
+This is due to the dialog opening in a `top-layer` of the page, and will override all other positioning rules.
In case you are using the `form.autocompleter` helper, you can pass the same options as you would to the `ng-select`
component