code4romania / code4romania/paul

Optional enumeration fields don't allow for empty values

Open
#24 0 comments 0 reactions 0 assignees View on GitHub
bug :bug: front-end
Dominant language
Python
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

If a table row has been set as an optional enumeration column, the only available options are the ones in the enumeration. Setting the field as `null`/`empty` is impossible.

**Expected:**
1. In a new or existing table, add a column
- of type `enumeration`
- with the `required value` option left unchecked
2. For a new/existing entry, select one of the enumeration options for the new column
3. Click again on that value and unset the value/set it to null/empty

**Actual:**
1. In a new or existing table, add a column
- of type `enumeration`
- with the `required value` option left unchecked
2. For a new/existing entry, select one of the enumeration options for the new column
3. Clicking again on that value **there is no option to remove the current value**

**More details:**
Image showing the column creation:
![Screenshot 2023-07-27 at 11 40 36](https://github.com/code4romania/paul/assets/2820084/07de902d-a36f-43e8-b119-c4131b328405)

Image showing the options for an entry:
![Screenshot 2023-07-27 at 11 41 09](https://github.com/code4romania/paul/assets/2820084/a90dad9e-0463-483f-b619-05f795ee9e34)

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.