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

DisplayField doesn't show placeholder or template for empty value using Material Theme #7172

Open
marciogurka opened this issue Jul 17, 2023 · 1 comment
Labels
bug Something isn't working forum Issues from forum premium

Comments

@marciogurka
Copy link

Forum post

"Core.widget.DisplayField

new DisplayField({
    appendTo : targetElement,
    width    : 200,
    label    : 'Or use a template string',
    value    : '',
    template : age => age ? `${age} years old` : 'N/A'
});

It adds 'b-empty' cls to the field and the label is not aligned properly (I can fix with a CSS override)

new DisplayField({
    appendTo : targetElement,
    width    : 200,
    label    : 'Or use a template string',
    value    : '',
    placeholder : 'N/A'
});

Placeholder is ignored completely though it is mentioned in the docs.

The problem happens for Material Theme."
Screen Shot 2023-07-15 at 22.00.15.png

@marciogurka marciogurka added bug Something isn't working premium forum Issues from forum labels Jul 17, 2023
@matsbryntse
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum premium
Projects
None yet
Development

No branches or pull requests

2 participants