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

[Android] Placeholder values of input components are not applied #4484

Closed
Gunashree-R-V opened this issue Jul 24, 2020 · 2 comments
Closed

Comments

@Gunashree-R-V
Copy link

Platform

What platform is your issue or question related to? (Delete other platforms).

  • Android

Author or host

Microsoft Teams

Version of SDK

1.2.10

Details

As per the schema, Input components do have placeholder property which are to be shown when no selection has been made.

Placeholder properties aren't utilised on Android for Input.Number, Input.Date, Input.Time.

Here is the experience:

Android Experience Desktop OOB Experience Desktop Teams Experience iOS Teams Experience
Screenshot 2020-07-24 at 4 05 43 PM Screenshot 2020-07-24 at 4 06 29 PM Screenshot 2020-07-24 at 4 06 52 PM image

Here is the card JSON:

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.2",
    "body": [
        {
            "type": "TextBlock",
            "text": "Date Input"
        },
        {
            "type": "Input.Date",
            "id": "date",
            "placeholder": "Enter a date"
        },
        {
            "type": "Input.Number",
            "id": "number",
            "placeholder": "Enter a number within 1-10",
            "min": 1,
            "max": 10
        },
        {
      "type": "Input.Text",
      "id": "input1",
      "placeholder": "enter comment",
      "maxLength": 500
    },
    {
      "type": "Input.Time",
      "id": "time",
      "min": "09:00",
      "max": "17:00",
      "placeholder": "Enter time between 9-17"
    }
    ]
}

cc: @VikrantSingh01, @anbah34, @shbhadra

@ghost ghost added the Triage-Needed label Jul 24, 2020
@ghost ghost removed the Triage-Needed label Jul 30, 2020
@ghost
Copy link

ghost commented Jul 30, 2020

Hi @Gunashree-R-V. We have acknowledged this issue report. Please continue to follow this issue for updates/progress/questions.

@almedina-ms
Copy link
Contributor

This has been fixed in version 2.0+, during one of our meetings it was decided to not backport this fix into 1.2

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

5 participants