formio / formio.js

JavaScript powered Forms with JSON Form Builder
https://formio.github.io/formio.js
MIT License
1.89k stars 1.06k forks source link

[BUG] Using "select" as select list's value results in "contains an invalid selection" #3636

Closed mm-dsibinski closed 9 months ago

mm-dsibinski commented 3 years ago

Environment

Please provide as many details as you can:

Steps to Reproduce

  1. Create a new form using FormIO FormBuilder
  2. Add a new "Select" control by drag-and-drop
  3. In the new control, go to "Data" tab and add a new value in "Data Source Values" section with Label = "select"
  4. See the issue: on the "Preview" when expanding the select dropdown, there's a "contains an invalid selection" text instead of "select" text

Expected behavior

For control's value "select" the same value "select" should be displayed when rendering the form. It should work like that with all labels. What user types as a label in FormBuilder should always be displayed as a label when rendering the form using Form component.

Observed behavior

Instead of "select" control's label a "contains an invalid selection" text is displayed. It seems it happens with all words used here: https://formio.github.io/formio.js/docs/file/src/i18n.js.html It also seems to happen with all controls, not only select list.

Example

JSFiddle example

wag110894 commented 3 years ago

Thank you for reaching out! We are able to replicate and have added this to our backlog. For reference, the ticket number is FIO-1125.

We welcome a pull request as well as have an option to expedite this issue if you are interested.

Please let me know if you are interested and we can get the expedited process started.

mm-dsibinski commented 3 years ago

Hi @wag110894 , thank you for answering. We'll wait until you proceed with this issue according to your dev schedule.

Tatsiana8 commented 9 months ago

Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!