-
Notifications
You must be signed in to change notification settings - Fork 31
Committee search from homepage doesn't work #358
Comments
Good catch. Looks like the issue comes up because we have two inputs for choosing search type: a select for desktop views, and a pair of radio buttons for small screens. Even though only one input is displayed at a time, both get submitted with the search form. The simplest fix would be to use the same inputs for different screen sizes, if possible. Otherwise, we can add a few change listeners to keep the two inputs in sync. Both options are simple enough--what's your preference @noahmanger? |
Aaaaah. So this is a little tricky because of the different places the search bar lives. I could use some help thinking through this ( @jenniferthibault ) so here's a list with explanation: Desktop:
Small screen: Only space for radios |
So I guess i could see moving to radios throughout, except with the header search on desktop it wouldn't work. Maybe that's ok to have it be different, but that seems like a potentially confusing inconsistency? |
To be more specific, the issue is related to having multiple inputs of the same name in the same form. So it's no problem to use radio buttons in one form and selects in another. The problem comes up when a single form includes both. |
Oh totally. I'm just trying to think through if it makes sense to just say we're only using radio buttons all the time. |
@noahmanger I think it might make even more sense to move to toggle throughout instead of radios (remember the Luke W article I sent you yesterday?). That would also work to the left of the type field on the desktop version, AND we use toggles frequently elsewhere, radio buttons less so. |
Word. Yeah I was thinking the same thing. I still think it might be a On Thu, Jul 23, 2015 at 11:18 AM, Jennifer Thibault <
Noah Manger |
I'll take this on. |
Fixed in #363 |
From the homepage, if you change the search dropdown to "Committees" and then search, you get no results. It looks like there's a bug in the way we're building the url where it's not replacing the
search_type=candidates
parameter:?search_type=candidates&search_type=committees&search=michigan
The text was updated successfully, but these errors were encountered: