# Bug BNE-114 - Slash-command for linking work package should highlight first search result

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module | Modules and project features / Documents, Modules and project features / Text editor / BlockNoteJS / OpenProject Extensions |
| Target versions | 17.8.0 |
| Observed in versions |  |
| Sprint | Sprint 11: Versions stabilization |
| 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 |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Open a document
    
2.  Search for a work package with &quot;/wp&quot;
    
3.  See that the first element is not selected by default
    

### What is the buggy behavior?

The first element in the dropdown should be selected by default (this already works when searching via the &quot;#&quot;-notation)

### What is the expected behavior?

The first element should be selected, so pressing enter inserts it into the dom.

###   

### Screenshots and other files

Missing selection:

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/922158/content">

It should like this (without needing to press the arrow-down-key):  
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/922159/content">

###
