OfficeDev / Microsoft-Teams-Samples

Welcome to the Microsoft Teams samples repository. Here you will find task-focused samples in C#, JavaScript and TypeScript to help you get started with the Microsoft Teams App!
MIT License
947 stars 749 forks source link

Input field not working MS Teams app for iOS when adaptive card rendered in Messaging Extension task module #456

Open shubham-betterworks opened 2 years ago

shubham-betterworks commented 2 years ago

Steps to reproduce:

  1. Clone https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-type-ahead-search-adaptive-cards/nodejs.
  2. Add messaging extension command in manifest.json
    "composeExtensions": [
    {
        "botId": "{{Microsoft-App-Id}}",
        "commands": [
            {
                "id": "dynamicsearch",
                "type": "action",
                "title": "Dynamic Search",
                "description": "Dynamic Search",
                "initialRun": false,
                "fetchTask": true,
                "context": [
                    "compose"
                ]
            }
        ]
    }
    ],
  3. Add the following messaging extension invoke handler in TeamsBot

    handleTeamsMessagingExtensionFetchTask(context, action) {
    const card = CardFactory.adaptiveCard(this.adaptiveCardForDyanamicSearch());
    
    return {
      task: {
        type: "continue",
        value: {
          card,
        },
      },
    };
    }
  4. In onInvokeActivity method change last line return null with return super.onInvokeActivity(context);
  5. Start up the bot service

Actual Behaviour

When you open the messaging extension task module and click on input text box nothing happens i.e neither keyboard appears nor a cursor is shown https://user-images.githubusercontent.com/80667102/187455952-94acba92-c424-4530-866d-d6d49efee664.mp4

Expected behaviour

When you open the messaging extension task module and click on input text box keyboard appears and let user type text in it.

If we send this same adaptive card in chat instead of task module and input component lets user type and search.

Software versions

iOS --> 15.3.1 MS Teams app --> 4.15.1

Nivedipa-MSFT commented 2 years ago

@shubham-betterworks - Thanks for reporting this issue. We will check this at our end and let you know the updates.

shubham-betterworks commented 2 years ago

@Nivedipa-MSFT any updates?

Nivedipa-MSFT commented 2 years ago

@shubham-betterworks - Apologies for the delay in response, A bug has been raised for the same. We will keep you posted on the updates.

shubham-betterworks commented 1 year ago

@Nivedipa-MSFT any updates ???

Nivedipa-MSFT commented 1 year ago

@shubham-betterworks - Engineering team is working on the bug fix. We will let you know once we have any updates on it.

Nivedipa-MSFT commented 1 year ago

Hello @shubham-betterworks - Sorry for delay in response. We will check on the bug status with engineering team and let you know the updates.