Fix watcher selection dropdown being cut off

The watcher tab container was cutting of the dropdown because of
`overflow: auto` CSS requirements. The issue is fixed in this commit
by appending the dropdown to the body instead of as a direct child.

Closes https://community.openproject.org/projects/openproject/work_packages/43421/activity
pull/11038/head
Benjamin Bädorf 2 years ago
parent 4cc253ac3d
commit 9a6dfcca30
No known key found for this signature in database
GPG Key ID: 069CA2D117AB5CCF
  1. 12
      frontend/src/app/features/work-packages/components/wp-single-view-tabs/watchers-tab/watchers-tab.html

@ -17,11 +17,13 @@
<div class="work-package--watchers-lookup hide-when-print" <div class="work-package--watchers-lookup hide-when-print"
[hidden]="!allowedToAdd"> [hidden]="!allowedToAdd">
<form name="watcherForm" novalidate> <form name="watcherForm" novalidate>
<op-user-autocompleter [clearAfterSelection]="true" <op-user-autocompleter
(valueChange)="addWatcher($event)" [clearAfterSelection]="true"
[url]="availableWatchersPath" (valueChange)="addWatcher($event)"
class="wp-watcher--autocomplete"> [url]="availableWatchersPath"
</op-user-autocompleter> appendTo="body"
class="wp-watcher--autocomplete"
></op-user-autocompleter>
</form> </form>
</div> </div>
</div> </div>

Loading…
Cancel
Save