code4romania / code4romania/onghub

Odd Behavior in City/Count List

Open
#611 2 comments 0 reactions 1 assignee Claimed by @dragos1195 View on GitHub
bug :bug: ready-for-deploy
Dominant language
TypeScript
Stars
6
Forks
5
PR merge metrics
No merged PRs in 30d

Description

There are multiple issues with these lists, which I will detail below:

_____________________________________________________________________________________________________________________________________________
#### 1) City List is Empty at Opening After Checkbox Selection

- **Steps to Reproduce**
1. Access the third step of the NGO registration form.
2. In the 'Date oficiale' section, select a county-city.
3. Proceed to the 'Informații de contact' section and select the checkbox.
4. Click on the 'City' list.

- **Expected Result**
4. The city list should display available options.

- **Actual Result**
4. The city list opens but appears empty.

- **Note**
To make the values appear, the user must select a county.

_____________________________________________________________________________________________________________________________________________
#### 2) Invalid City-County Selection Allowed

- **Steps to Reproduce**
1. Access the third step of the NGO registration form.
2. In the 'Date oficiale' section, select a county-city. (e.g.: "Arges / Albesti")
3. In the 'Informații de contact' section, select a different county-city. (e.g.: "Bucuresti / Sector 5")
4. Select the checkbox
5. Click the "City" list

- **Expected Result**
5. The city list should display options within the selected county, Arges.

- **Actual Result**
5. The city list displays options within the previously selected county, Bucuresti.

- **Note**
The NGO request can still be submitted with this invalid selection.

![image](https://github.com/user-attachments/assets/43002a46-fdbf-4000-b831-80e3765a260b)

_____________________________________________________________________________________________________________________________________________
#### 3) City List Displays No Options If County Is Not Selected

If you click on the city list without first selecting a county, the list opens but appears empty. This behavior seems odd; see the ss below:

![image](https://github.com/user-attachments/assets/a4fdaa42-3ea8-4ba2-af53-54896b5793dd)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.