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

Add "none" support for Selected Option field #233

Open
AndreeaCristinaRadacina opened this issue Jan 11, 2024 · 1 comment
Open

Add "none" support for Selected Option field #233

AndreeaCristinaRadacina opened this issue Jan 11, 2024 · 1 comment
Labels
new feature Request for a new feature or functionality to be added to the project. small (1-3h) This label is used for issues that can be completed within 3 hours or less.

Comments

@AndreeaCristinaRadacina
Copy link

AndreeaCristinaRadacina commented Jan 11, 2024

What problem does this address?

While working on a ticket, I noticed that there is no way to avoid having options selected by default.

Because of this, when entering a product's page, there will be an already-made selection and the display conditions will be triggered.

In this case, I wanted to avoid displaying some fields based on the Select conditions, but because there is a default selection, they will appear first on the page.
image

image

What is your proposed solution?

Allow entering "none" or if nothing is typed there, don't inherit the first option as default.

Will this feature require documentation? (Optional)

None

@AndreeaCristinaRadacina AndreeaCristinaRadacina added the new feature Request for a new feature or functionality to be added to the project. label Jan 11, 2024
@Soare-Robert-Daniel
Copy link
Contributor

I see two approaches:

  • we add an option that blocks the selection of the first option on rendering (prevent the select attribute)
  • by default, when you create a select, we need a dummy option named None or Select an option

@Soare-Robert-Daniel Soare-Robert-Daniel added the small (1-3h) This label is used for issues that can be completed within 3 hours or less. label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Request for a new feature or functionality to be added to the project. small (1-3h) This label is used for issues that can be completed within 3 hours or less.
Projects
None yet
Development

No branches or pull requests

2 participants