Skip to content

AnchorField is missing placeholder text #328

@mfendeksilverstripe

Description

@mfendeksilverstripe

Module version(s) affected

4.0.6

Description

Internal link (site tree link) uses AnchorField as a part of the link edit form. This field used to have a placeholder text Select or enter anchor but now it's gone.

How to reproduce

  • install linkfield module
  • attach a link to any model so you can view the Link edit form (modal)
  • click on add link and choose Site tree link (page on this site option)

Expected behaviour:

Placeholder text is visible.

Screenshot 2024-09-05 at 12 44 18 PM

Actual behaviour:

Placeholder text is not visible.

Screenshot 2024-09-05 at 12 42 58 PM

Possible Solution

Possibly related to AnchorSelectField component. I can see the placeholder text is still in the code but doesn't display for some reason.

Additional Context

Noticed during CMS 5 upgrade.

Validations

  • Check that there isn't already an issue that reports the same bug
  • Double check that your reproduction steps work in a fresh installation of silverstripe/installer (with any code examples you've provided)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions