thewca / worldcubeassociation.org

All of the code that runs on worldcubeassociation.org
https://www.worldcubeassociation.org/
GNU General Public License v3.0
327 stars 175 forks source link

Competition Selector (in Contact Form) Fails When competitionId is Set #7080

Closed mitchell-toth closed 2 years ago

mitchell-toth commented 2 years ago

Describe the bug The competition selector on the WCA Contact Form exhibits faulty behavior when the competitionId query parameter is set in the URL.

To Reproduce

  1. 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.

  2. Choose contact option "Contact the Organizers of a Specific Competition (please select below)". This is auto-selected whenever competitionId is present.

  3. 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 image image image

Desktop:

dunkOnIT commented 2 years ago

@gregorbg could this be related to the changes you made to competition links in Contact Forms recently?

gregorbg commented 2 years ago

Sorry never got back to your comment. Yes, it is related and I hope it's fixed with a less sledgehammer-y approach now.