Skip to content

Feature Request: props.defaultValue as string element #4452

@mkikets99

Description

@mkikets99

Are you asking a question?

This is feature request

Are you making a feature request?

Provide as much information as possible about your requested feature. Here are a few questions you may consider answering:

Note:

typeof this.state.edata.relates === 'string' //true
  • What's your use case? (Tell us about your application and what problem you're trying to solve.)
    • This plugin is very helpful but it has very hard implementation of default value in grouped select ( something like this is needed:
    <Select defaultValue={_.find(_.flatten(_.map(this.state.data,(el)=>el.options)),{value:this.state.edata.relates})} ... />
  • What interface do you have in mind? (What new properties or methods do you think might be helpful?)
    • Using it like this for grouped select would be much easier
    <Select defaultValue={this.state.edata.relates} ... />
  • Can you point to similar functionality with any existing libraries or components? (Working demos can be helpful.)
    (I dunno.) Maybe, something like on MDB premium:
    https://mdbootstrap.com/docs/react/forms/select/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions