Skip to content

Section Label Input Loses Focus While Typing #2655

@RabbiIslamRony

Description

@RabbiIslamRony

Directorist version

latest

Environment

latest

Description

## 🐞 Bug: Section Label Input Loses Focus While Typing

### Description
While editing the section label, the input field gets unselected (loses focus) after typing a single character. This should not happen.

### Notes
- The issue may be caused by unnecessary re-rendering or state reset on each keystroke

Steps to Reproduce

  1. Go to section label edit mode
  2. Click on the section label input
  3. Type any single character

Actual Behavior

  • The input field loses focus / becomes unselected after one character

Expected Behavior

  • The input should stay focused and allow continuous typing

Impact

  • Makes section label editing difficult and interrupts the user experience

Isolating the problem

  • I have reproduced this bug in localhost.
  • This bug happens with a default WordPress theme active (eg. 2021, 2022 etc).

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions