-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
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 keystrokeSteps to Reproduce
- Go to section label edit mode
- Click on the section label input
- 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).