Topic: React Select not working

jens.uhlig@m2mgo.com free asked 5 years ago


Hi, i cant get the the select component to work:

installed as:"mdbreact": "git+__TOKEN___@git.mdbootstrap.com/mdb/react/re-pro#4.9.0"

Using:

< MDBSelect getValue={this.onDomainValueChanged.bind(this)} id="domainSelect" search multiple options={this.state.domainOptions} selected="Filter by domain" />

this.state.domainOptions is an array of objects like this one: { selected: false, checked: false, disabled: false, icon: null, text: domain.Display, value: domain.ID }Error:

Warning: Unknown prop options on tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop in div in t (created by BlueprintListAdvancedSearchForm) in div (created by BlueprintListAdvancedSearchForm)

Tried with 4.9, 4.10 and 4.11 always with the same result.

Thanks for your help


Jakub Mandra staff answered 5 years ago


Hi,

Does any other component work?

GitLab url should look like this:

"mdbreact": "git+https://oauth2:TOKEN@git.mdbootstrap.com/mdb/react/re-pro.git",


jens.uhlig@m2mgo.com free commented 5 years ago

Hi, thanks for answering! Does the Url looks bad for you? The only difference i can see, is the specific version at the url end: "#4.9". We added it in that way by following the answer of a previous question we ask a few days ago here. Please let me know if it is not the correct way to bind the pro version of an specific version.

Yes, many other components are working fine.

Thanks in advance


jens.uhlig@m2mgo.com free commented 5 years ago

Hi, we found a solution. It has nothing to do with mdbreact. If someone is getting into this problem, consider to review your package.json for inconsistences related to babel.

Thanks


Jakub Mandra staff commented 5 years ago

Yes, it is correct, I was wondering about the 'https' part.

Thank you for posting about your research, it will be useful in the future. Hope you will enjoy working with mdb :)

Best,

Jakub



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.8.4
  • Device: any
  • Browser: all
  • OS: any
  • Provided sample code: Yes
  • Provided link: Yes