Skip to content

Missing placeholder-text in Material's TextField #10159

@janbudde

Description

@janbudde

Bug Description

When using Material Design, the placeholder text is not displayed in TextField.

Image

If I'm not mistaken, the placeholder text is also missing from the example at https://material.slint.dev/components/text_field/.

Reproducible Code (if applicable)

import { TextField } from "@material";

export component MainWindow inherits Window {
    width: 640px;
    height: 240px;

    TextField {
        width: 80%;
        placeholder-text: "some text";
    }
}

Environment Details

  • Slint Version: 1.14.1

  • Platform/OS: Ubuntu 22.04

  • Programming Language: Rust 1.91.1

  • Backend/Renderer: (I don't now Slint well enough to check the renderer in use.)

  • Material Design template from https://material.slint.dev/zip/material-1.0.zip.

Product Impact

I would like to use the placeholder text to show default values used without further input. It would be very useful to me to have it available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:material-componentsIssues related to the material components (mN)need triagingIssue that the owner of the area still need to triage

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions