-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
Description
Directorist version
8.5.6
Environment
PHP version 7.4.33
Description
Description:
When I remove the text from an input field to add a custom label, the default label keeps reappearing. Even after clearing the field multiple times, the default text restores automatically. To apply a custom label, I have to manually select the field and type again — which creates a poor user experience.
A smoother flow is needed so that when a user clears the label, it stays empty and allows custom text without forcing the default label again.
Expected Behavior:
- When the user removes the existing label text, it should remain empty.
- The default label should not return automatically.
- The user should be able to enter a custom label directly.
Actual Behavior:
- Removing text restores the default label immediately.
- Requires manually selecting the field again to type a new label.
Attachment:
Steps to reproduce
Reproduction Steps:
- Go to the Builder.
- Add a Number field in the Add Listing form.
- Save and go to the Add Listing page.
- Try to edit the label text directly without selecting the text.
- Remove the label text — it immediately restores the default label.
Isolating the problem
- I have reproduced this bug in localhost.
- This bug happens with a default WordPress theme active (eg. 2021, 2022 etc).