Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug: When trying to add a new option in a Single select, the first option value is updated as well #8790

Closed
1 task done
AlexandreBonneau opened this issue Jun 18, 2024 · 3 comments
Assignees

Comments

@AlexandreBonneau
Copy link

Please confirm if bug report does NOT exist already ?

  • I confirm there is no existing issue for this

Steps to reproduce ?

  1. Have a single select already configured from a previous NocoDB install (where it was created from the NocoDB UI)
  2. Have the first option selected as the default value
  3. Click "Add option", and start typing
  4. -- Faulty behavior starts here --
  5. While typing your new option value, the very first option is modified at the same time (leading to the warning message "Select options can't have duplicates"

Do note that if you type your new option name "foo", then the first option is renamed "foo", but you can then go edit the first option back to its original name....however as soon as you type some text in the new option field, the very first field is updated again.

2024-06-18_114953_Screenshot

This effectively makes single select element hard to use since you need to save the initial first value somewhere, edit the new option name, then edit back the first value, then save. This way it works.

Desired Behavior

Be able to add new option without it changing the value of the other options.

Project Details

NocoDB docker : true
NocoDB Version : not sure how to check that since it does not seem to be written on the web pages
NC_DB : pg
New project from the UI
Running on Linux

Attachments

No response

@dstala
Copy link
Member

dstala commented Jun 19, 2024

@AlexandreBonneau This seems to be an issue with older version. Can you help us confirm if you are on the latest docker?
Version can be checked using base context menu
https://docs.nocodb.com/FAQs#how-to-check-my-project-info-

@AlexandreBonneau
Copy link
Author

This is the version I'm running :
Node: v20.12.1
Arch: x64
Platform: linux
Docker: true
RootDB: pg
PackageVersion: 0.250.2

@dstala
Copy link
Member

dstala commented Jun 21, 2024

@AlexandreBonneau Issue reproducible when working with MultiField Editor. Works fine on grid (if you need a workaround for now). We will fix it in our next release, likely by Monday

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Closed
Development

No branches or pull requests

3 participants