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]: selectedOptionValue being assigned as selectedOptionLabel #30074

Open
1 task done
thebadking opened this issue Jan 5, 2024 · 3 comments
Open
1 task done

[Bug]: selectedOptionValue being assigned as selectedOptionLabel #30074

thebadking opened this issue Jan 5, 2024 · 3 comments
Assignees
Labels
Bug Something isn't working Community Reported issues reported by community members Integrations Pod General Issues related to the Integrations Pod that don't fit into other tags. Integrations Product Issues related to a specific integration Low effort Takes 1-2 days Medium Issues that frustrate users due to poor UX Needs Triaging Needs attention from maintainers to triage One-click Binding Issues related to the One click binding epic Production Query & JS Pod Issues related to the query & JS Pod Select Widget Select or dropdown widget Widgets & Accelerators Pod Issues related to widgets & Accelerators Widgets Product This label groups issues related to widgets

Comments

@thebadking
Copy link

thebadking commented Jan 5, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Description

image image

as you can see the object from the dropdown "form_select_dropdown" is generating the values wrongly as the data being loaded to it has values of 1 and 2 as you can see from the query that is being loaded to that module bellow

image image

for some reason the value is being set the same as the label

Steps To Reproduce

create a query as such
SELECT form_name as label, form_id as value FROM public."forms"

load it into a dropdown module
and try to access that object property "selectedOptionValue" to see if it matches the value or the label

Public Sample App

No response

Environment

Production

Issue video log

No response

Version

Cloud

Front logo Front conversations

@thebadking thebadking added Bug Something isn't working Needs Triaging Needs attention from maintainers to triage labels Jan 5, 2024
@thebadking thebadking changed the title [Bug]: [Bug]: selectedOptionValue being assigned as selectedOptionLabel Jan 5, 2024
@Nikhil-Nandagopal Nikhil-Nandagopal added the Community Reported issues reported by community members label Jan 5, 2024
@somangshu somangshu added the Select Widget Select or dropdown widget label Jan 5, 2024
@github-actions github-actions bot added the Widgets Product This label groups issues related to widgets label Jan 5, 2024
@somangshu somangshu added the One-click Binding Issues related to the One click binding epic label Jan 8, 2024
@Nikhil-Nandagopal Nikhil-Nandagopal added the Medium Issues that frustrate users due to poor UX label Jan 23, 2024
@sbalaji1192
Copy link
Contributor

@thebadking We are working on a fix. In the meantime you can solve this issue on your app by toggling the js mode of Source data property and removing the map function.

@BIshounen
Copy link

Took me 2 days to realise exactly what's happening and how to fix it via JS

@AmanAgarwal041
Copy link
Contributor

Moving this to sprint backlog for the priority for Snowflake tasks.

@Nikhil-Nandagopal Nikhil-Nandagopal added the Widgets & Accelerators Pod Issues related to widgets & Accelerators label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Community Reported issues reported by community members Integrations Pod General Issues related to the Integrations Pod that don't fit into other tags. Integrations Product Issues related to a specific integration Low effort Takes 1-2 days Medium Issues that frustrate users due to poor UX Needs Triaging Needs attention from maintainers to triage One-click Binding Issues related to the One click binding epic Production Query & JS Pod Issues related to the query & JS Pod Select Widget Select or dropdown widget Widgets & Accelerators Pod Issues related to widgets & Accelerators Widgets Product This label groups issues related to widgets
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants