ChoiceSet expanded style does not show as radio
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3
- Forks
- 1
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 21
Description
The style attribute of ChoiceSet does not influence the appearance of the rendered object. The expected behavior is for the choices to appear as a group of radio buttons. The current behavior shows the rendered object as a dropdown for both compact and expanded values.
Examples
From the Todoist Integration Examples Lorem Ipsum example:
const choiceSet = new ChoiceSetInput()
choiceSet.id = 'Input.Choice'
choiceSet.style = 'expanded'
choiceSet.choices = [
new Choice('1'),
new Choice('2'),
new Choice('3'),
]
choiceSet.defaultValue = '1'
card.addItem(choiceSet)
From an integration I'm currently working on:
{
"type": "Input.ChoiceSet",
"id": "dayChoice",
"label": "Expires",
"style": "expanded",
"choices": [
{
"title": "Today",
"value": "today"
},
{
"title": "Tomorrow",
"value": "tomorrow"
}
]
}
Contributor guide
No contributing guide indexed for this repository
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 tracing ChoiceSetInput rendering and how its style attribute is handled. Verify the behavior using the TypeScript and JSON examples in the issue; done means expanded choices render as radio buttons while compact choices remain a dropdown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100