pallets-eco / pallets-eco/wtforms
SelectField option_widget argument not used
Open
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 1.6k
- Forks
- 409
- PR merge metrics
- No merged PRs in 30d
Description
The option_widget parameter to SelectField is not used by the built-in Select widget to render the choices as option elements. It appears to use its render_option class method regardless.
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 tracing SelectField and the built-in Select widget to see how option_widget and render_option are handled. Reproduce the issue with a SelectField using a custom option_widget, then add regression coverage showing that the configured widget renders each choice as an option element.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100