Opened 11 months ago

Last modified 11 months ago

#6564 new feature request

The options in the select box must contain a placeholder

Reported by: aezazshekh's profile aezazshekh Owned by:
Milestone: Priority: normal
Component: Trac Keywords: needs-patch has-screenshots close 2nd-opinion


When we open the Custom Query page, the first option in all the select boxes is blank. So instead of the blank option, we should add that placeholder option.

Custom Query page =>

Attachments (1)

CleanShot 2022-11-02 at 18.04.08@2x.png (978.8 KB) - added by aezazshekh 11 months ago.
Screenshot of Issue

Download all attachments as: .zip

Change History (3)

11 months ago

Screenshot of Issue

#1 @aezazshekh
11 months ago

For example, I have added a placeholder in a select box here.

Screenshot of the Example

#2 @dd32
11 months ago

  • Keywords close 2nd-opinion added

This is not something we can realistically do, as the Trac software generates these for us.

This should be reported as a bug to Trac itself via

That being said, we can prefix an element to all <select>s via Javascript (or Trac Genshi template rewrites I guess), but would require someone to go through and make a HTML ID => Default text mapping, and at that point I'm really starting to question if the effort is worth it.

(edit: Also; a lot of those selects don't have a clear singular text, the context is provided more-or-less by the text around it, rather than the contents. The Component select is probably the only one it can be easily done for, and even then, not selecting a component is a valid query sometimes)

I'm marking this as 2nd-opinion close instead of just closing this as wontfix, unless someone feels super strongly about this.

Last edited 11 months ago by dd32 (previous) (diff)
Note: See TracTickets for help on using tickets.