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

AllowCustomValues for select (in addition to multiselect)? #191

Closed
ConnerV42 opened this issue Apr 6, 2020 · 4 comments
Closed

AllowCustomValues for select (in addition to multiselect)? #191

ConnerV42 opened this issue Apr 6, 2020 · 4 comments

Comments

@ConnerV42
Copy link

Title pretty much says it all. It would be awesome to be able to select a custom value for a single select widget.

@ukrbublik
Copy link
Owner

You can try to use custom Select widget like this: https://codesandbox.io/s/geose
But it looks dirty, AntDesign doesn't support true custom values for single Select out-of-box, so I don't want to include this in lib.
But PR is welcomed

@ukrbublik
Copy link
Owner

For MaterialUI you can use this field config to solve your issue:

      label: "your select name",
      type: "select",
      valueSources: ["value"],
      fieldSettings: {
        listValues: ['a', 'b'], // your list of values
        allowCustomValues: true
      },
      mainWidgetProps: {
        showSearch: true // required for now, will set to true by default in next versions
      }
    },

For AntDesign it's in my todo list

@nageshwari17
Copy link

nageshwari17 commented Sep 28, 2022

Hi @ukrbublik, Even I'm facing the same issue(allowCustomValues) with material UI. It's working with AntdConfig but not with Material UI.

Here is the CBS https://codesandbox.io/s/modest-shaw-jwfrg4?file=/src/demo/config_simple.tsx.

@ukrbublik
Copy link
Owner

Closed as resolved in 6.3.0

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

No branches or pull requests

3 participants