# Bug BNE-196 - Documents: create work package option opens on top instead of the bottom in certain cases

Project: Stream BlockNote extensions
Status: closed
URL: https://community.openproject.org/work_packages/BNE-196

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Text editor / BlockNoteJS, Modules and project features / Documents |
| Target versions | 18.0.0 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Ihor Dubas |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

###   

### Steps to reproduce

1.  Login and open a document
    
2.  Make sure you have some text until the end of the page so scroll down and type /&nbsp;
    
3.  Select Link work package and type some input that triggers the search results on the top
    
4.  Observe how Create work package option appears at the bottom as expected
    
5.  Continue typing the input that should trigger no results
    
6.  When no results appear, observe the position of the Create work package
    

### What is the buggy behavior?

*   It appears on the top this time (see the attached video)
    

### What is the expected behavior?

1.  It should show at the bottom
    

###   

### Environment information

**OpenProject version**

_18.0_

**Browser**

*   [x] Chrome
*   [ ] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [ ] Other (please specify)

**Operating System**

*   [ ] Windows
*   [ ] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [x] Linux (please specify distro)
*   [ ] Chrome OS
*   [ ] Other (please specify)

**Language**

*   [ ] English
*   [ ] German
*   [ ] Other:
