# Bug OP-17442 - Wrong focused field in date picker

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-17442

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Relations and scheduling |
| Target versions | 16.3.0 |
| Observed in versions | 16.1.0 |
| Sprint | 16.3.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.1.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Christophe Bliard |
| Product manager |  |
| Developers | Attila Dombi |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Have 2 work packages automatically scheduled: one being a successor only, one being a parent only.
    
2.  For parent work package:
    
    1.  In work packages list view, click start date or finish date
        
        1.  **buggy behavior**: a blue outline is shown on finish date field
            
        2.  **expected behavior**: no outline as it is used as a focus indicator. As they are currently disabled they should not show that focus indicator.
            
    2.  in work package list view, after clicking on start date field to open the date picker modal, switch to manual mode
        
        1.  **buggy behavior**: due date is focused and editable
            
        2.  **expected behavior**: start date has been clicked, so start date should be editable and focused, not finish date
            
3.  For successor work package
    
    1.  In work packages list view, click start date or finish date of the successor
        
        1.  **ok**: finish date is focused
            
    2.  in work package list view, after clicking on start date field to open the date picker modal, switch to manual mode
        
        1.  **buggy behavior**: due date is focused and editable
            
        2.  **expected behavior**: start date has been clicked, so start date should be editable and focused, not finish date
            

### Environment information

**OpenProject version**

16.1
