microsoft / microsoft/AdaptiveCards
[Designer] Card Payload Editor does not update when removing label/placeholder values from the Element Properties
Open
Nobody has claimed this yet.
Area-Designer
Bug
- Dominant language
- C#
- Stars
- 2k
- Forks
- 595
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 1
Description
Problem Description
Go to Designer
Steps to Reproduce:
- Drag an Input.Text to the card area.
- In the Element Properties toolbox, fill in the fields for Id, Label and Placeholder. Observe the Card Payload Editor updates with the correct key-value pair.
- In the Element Properties toolbox, remove values for Label and Placeholder. Observe the Card Payload Editor does not update and does not remove the properties that have been cleared out.
Card JSON
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.4",
"body": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"text": "Input.Text Elements",
"horizontalAlignment": "Center",
"wrap": true
},
{
"type": "Input.Text",
"label": "Name",
"id": "SimpleVal",
"placeholder": "Enter your name"
},
{
"type": "Input.Text",
"label": "Homepage",
"style": "Url",
"id": "UrlVal",
"placeholder": "Enter your homepage url"
},
{
"type": "Input.Text",
"label": "Email",
"style": "Email",
"id": "EmailVal",
"placeholder": "Enter your email"
},
{
"type": "Input.Text",
"label": "Phone",
"style": "Tel",
"id": "TelVal",
"placeholder": "Enter your phone number"
}
]
}
Screenshot
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in the Adaptive Cards Designer using the steps provided, then trace how the Element Properties toolbox updates the Card Payload Editor. Done means clearing Label and Placeholder removes those properties from the generated card JSON.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100