MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
285 stars 508 forks source link

[Rendering] Suggestion and autocorrect text renders upside down #8082

Closed Wajeed-msft closed 1 year ago

Wajeed-msft commented 1 year ago

Copied bug from: https://github.com/microsoft/AdaptiveCards/issues/8305

Details from original post:

Target Platforms

iOS

SDK Version

N/A

Application Name

Teams

Problem Description

I am sending an adaptive card to Teams to get input from a user. The autocorrect/suggestion text is upside down. I have no idea why this would be occurring, but I was able to reproduce it on four different iPhones. I do not have access to an Android phone, so I'm not sure if it is Teams or iOS.

Screenshots

image

Card JSON

{
   "attachments":[
      {
         "contentType":"application/vnd.microsoft.card.adaptive",
         "content":{
            "$schema":"http://adaptivecards.io/schemas/adaptive-card.json",
            "type":"AdaptiveCard",
            "version":"1.4",
            "body":[
               {
                  "type":"TextBlock",
                  "size":"Medium",
                  "weight":"Bolder",
                  "text":"Weather Request",
                  "horizontalAlignment":"Center",
                  "wrap":true,
                  "style":"heading"
               },
               {
                  "type":"Input.Text",
                  "label":"Location",
                  "style":"text",
                  "id":"location",
                  "isRequired":true,
                  "errorMessage":"Location is required"
               },
               {
                  "type":"Input.Date",
                  "label":"Start",
                  "isRequired":true,
                  "id":"start",
                  "value":"2023-02-12"
               },
               {
                  "type":"Input.Date",
                  "label":"End",
                  "id":"end"
               },
               {
                  "type":"Input.ChoiceSet",
                  "choices":[
                     {
                        "title":"U.S.",
                        "value":"us"
                     },
                     {
                        "title":"Metric",
                        "value":"metric"
                     }
                  ],
                  "id":"units",
                  "label":"Units",
                  "isRequired":true,
                  "value":"us"
               },
               {
                  "type":"TextBlock",
                  "text":"Include:",
                  "wrap":true,
                  "spacing":"Large"
               }
            ],
            "actions":[
               {
                  "type":"Action.Submit",
                  "title":"Submit",
                  "data":{
                     "id":"weather"
                  }
               }
            ]
         }
      }
   ]
}

Sample Code Language

No response

Sample Code

No response---

Document Details

Do not edit this section.It is required for docs.microsoft.com ➟ GitHub issue linking.

ghost commented 1 year ago

Hi Wajeed-msft! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

bandtank commented 1 year ago

I am the original reporter. Please let me know if more information is needed.

Prasad-MSFT commented 1 year ago

@bandtank - Thanks for reporting the issue. We will check this from our end and revert back with updates.

Prasad-MSFT commented 1 year ago

@bandtank - We tried with the Json provided, however we are not getting any autocorrect/suggestions while typing anything in the input field. image

bandtank commented 1 year ago

The JSON data isn't relevant to this topic in my opinion. I provided it because the previous bug report form required JSON data. I am only seeing this issue in chats with bots and only in Teams. As far as I know, there is no way for a bot to influence the behavior or appearance of autocorrect text, so it must be a Teams-specific issue.

I sent the card to my personal chat thread from postman instead of the PHP code on my server, which produced the same behavior.

TFesmire commented 1 year ago

I am also seeing the same issue that @bandtank is experiencing. I am running this on an iPhone 13, iOS 16.0 and MSTeams 5.1.0. This error only occurs within autocorrect for Teams when using adaptive cards get input from a user.

IMG_7758

Prasad-MSFT commented 1 year ago

@bandtank , @TFesmire - Could you please share the json which you used to send the card via postman having autocorrect/suggestion?

ghost commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 3 days. It will be closed if no further activity occurs within 3 days of this comment.

bandtank commented 1 year ago

The behavior does not change if I use V1.2, 1.3, 1.4, or 1.5 of the adaptive card.

{
  "type": "message",
  "attachments": [
    {
      "contentType": "application/vnd.microsoft.card.adaptive",
      "content": {
        "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
        "type": "AdaptiveCard",
        "version": "1.5",
        "body": [
          {
            "type": "TextBlock",
            "size": "Medium",
            "weight": "Bolder",
            "text": "Weather Request",
            "horizontalAlignment": "Center",
            "wrap": true,
            "style": "heading"
          },
          {
            "type": "Input.Text",
            "label": "Location",
            "style": "text",
            "id": "location",
            "isRequired": true,
            "errorMessage": "Location is required"
          }
        ],
        "actions": [
          {
            "type": "Action.Submit",
            "title": "Submit",
            "data": {
              "id": "weather"
            }
          }
        ]
      }
    }
  ]
}
Prasad-MSFT commented 1 year ago

@bandtank , @TFesmire - Although we are still not able to repro this issue (auto-correction/suggestion is not showing), we have raised a bug for the same and engineering team is looking into it. We will inform you once we get any further update. Thanks!

Prasad-MSFT commented 1 year ago

@bandtank , @TFesmire - Engineering team is also not able to repro this issue? Could you please verify it on latest build and confirm if it is still reproable?

ghost commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 3 days. It will be closed if no further activity occurs within 3 days of this comment.

bandtank commented 1 year ago

I have confirmed this issue on three iPhones and two iPads. All devices have the latest version of iOS and Teams.

Prasad-MSFT commented 1 year ago

@bandtank - Could you please share the recording of the issue along with deployed manifest if possible, so that we can pass this to engineering team to investigate further?

ghost commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 3 days. It will be closed if no further activity occurs within 3 days of this comment.