Closed mitchell-toth closed 2 years ago
@gregorbg could this be related to the changes you made to competition links in Contact Forms recently?
Sorry never got back to your comment. Yes, it is related and I hope it's fixed with a less sledgehammer-y approach now.
Describe the bug The competition selector on the WCA Contact Form exhibits faulty behavior when the
competitionId
query parameter is set in the URL.competitionId
produces an empty result set. For example, if the URL contains?competitionId=MilwaukeeFirst2022
, then searching by any of ["m", "i", "l", "w", "a", "u", "k", "e", "f", "r", "s", "t", "2", "0"] produces no results.To Reproduce
Navigate to the WCA Contact Form page with the
competitionId
query parameter set to a non-empty value. This occurs, for instance, when clicking the "Organization team" contact link from the "Info" tab of any competition page.Choose contact option "Contact the Organizers of a Specific Competition (please select below)". This is auto-selected whenever
competitionId
is present.Attempt to type a competition name, such as the name of the competition whose page you routed from.
Expected behavior The competition selector automatically selects the competition defined by the
competitionId
query parameter string. Alternatively, searching by the desired competition name would filter as intended.Screenshots
Desktop: