Skip to content

Bug: Unable to Replace Default Input Label with Custom Label #2615

@RabbiIslamRony

Description

@RabbiIslamRony

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:

  1. Go to the Builder.
  2. Add a Number field in the Add Listing form.
  3. Save and go to the Add Listing page.
  4. Try to edit the label text directly without selecting the text.
  5. 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).

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions