Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setAttribute doesn't work in inline_editable=true #738

Closed
lerni opened this issue Oct 2, 2019 · 6 comments
Closed

setAttribute doesn't work in inline_editable=true #738

lerni opened this issue Oct 2, 2019 · 6 comments

Comments

@lerni
Copy link

lerni commented Oct 2, 2019

With 4.2.1 $ElementBlahField->setAttribute('placeholder', $placeholdertext); just shows if inline_editable=false.

@ScopeyNZ
Copy link
Contributor

ScopeyNZ commented Oct 3, 2019

This will probably be a bug with something in admin, but I don't have time to investigate now.

@kinglozzer
Copy link
Member

Sounds very related to silverstripe/silverstripe-framework#9124

@blueskies79
Copy link

I have no idea of the cause, so I can't say anything sensible on that. But I can confirm this issue exists. I tried to get a dependant dropdown (sheadawson/silverstripe-dependentdropdownfield) to work inside an elemental form and the setAttributes are missing. I can't get any setAttributes to show on Elemental formfields

@Rhym
Copy link

Rhym commented Mar 10, 2020

This issue seems to still be prevalent.

@micschk
Copy link
Contributor

micschk commented Nov 24, 2021

Temporary workaround (eg for placeholder attribute):
$field->setSchemaData(['attributes' => ['placeholder' => 'My placeholder value']]);

@GuySartorelli
Copy link
Member

This is a duplicate of silverstripe/silverstripe-framework#9124 - once that's resolved, this will be resolved.

@GuySartorelli GuySartorelli closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants