pallets-eco / pallets-eco/wtforms

SelectField option_widget argument not used

Open
#381 4 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.