[Javascript] Empty Input.Date on AdaptiveCards
See original GitHub issuePlatform
- JavaScript
Author or host
Microsoft Teams
If you’re an author, who are you sending cards to?
Version of SDK
I’m using botbuilder 3.11 and botbuilder-teams 0.2.6.
Details
I’ve built an adaptive cards with a Input.Date where user can select a date.
{ "type": "Container", "items": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "auto", "items": [ { "type": "TextBlock", "text": "Select from 📅", "size": "medium", "wrap": true } ] }, { "type": "Column", "width": "auto", "items": [ { "type": "Input.Date", "id": "startDate", "value": "" } ] } ] } ] }
This is part of the card. The card is sent to Microsoft Teams and renders properly. Here comes the bug:
If the Teams client is on mobile there is no problem. But if the client is web, the Input.Date value is only being returned when the user locale is English. I think this happens because of the default date format. I’ve tried with Spanish, Deustch and other languages and the date value is not returned. As I said if I do it from Microsoft Teams mobile app this problem is solved.
Other users have reported similar problems: https://github.com/OfficeDev/BotBuilder-MicrosoftTeams/issues/195 https://github.com/microsoft/botframework-sdk/issues/5411
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (7 by maintainers)
Top GitHub Comments
Thanks @susanshen96 ! Any chance we can reference the bug here over github or is it being tracked internally? @pedroacuma fyi.
@siduppal / @clearab / @susanshen96 heads up; Can somebody from the teams side pick this up please?