You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Actual behaviour:
Placeholder text is not visible.
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)
The text was updated successfully, but these errors were encountered:
I've noticed that this issue applies to all the fields; I was extending the base Link class to add some extra fields and noticed my placeholders weren't rendering either. I've tried adding a TextField with a placeholder with no luck, so it looks like it's not specific to just the AnchorSelectorField. I tried setting different types of attributes but wasn't able to see them being rendered.
E.g.
$descriptiveTextField = TextField::create('DescriptiveText', 'Descriptive Text');
$descriptiveTextField->setAttribute('placeholder', 'Enter descriptive text here');
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
Expected behaviour:
Placeholder text is visible.
Actual behaviour:
Placeholder text is not visible.
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
silverstripe/installer
(with any code examples you've provided)The text was updated successfully, but these errors were encountered: