question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

simpleValue for User-Created Tags Not Working Properly

See original GitHub issue

I am trying to use simpleValue={true} for <Creatable /> tags. The pre-written labels work correctly, but when the user types in a custom tag, it does not work. However, they do get written properly to the state, they just don’t show up when rendered.

<Select.Creatable multi={true} options={[ { label: 'A', value: 'A' }, { label: 'B', value: 'B' }, { label: 'C', value: 'C' }, ]} onChange={this.handleTestTagInput} value={this.props.printTest.testTags} simpleValue={true} />

For the above example. Selecting A, B or C works and displays correctly. Any custom tags that are entered in do not physically show up, but they are registered into the string.

Is this a known issue? Any work around this?

edit: moreover, when I enter in a new custom tag and press my ‘enter’ key, it deletes all of the previous custom tags and inserts the new one into the string. However, clicking on ‘click option’ adds it just fine.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:9
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jmollercommented, Jun 9, 2017

I think the mistake lies on putting the options object in the render method or in your case directly in the Creatable tag.

I put the options object in the state and set the Creatable options to this.state.options and now it works just fine. Hope this helps someone!

0reactions
ebonowcommented, Dec 2, 2020

why are you closing it? simplevalue does not work for creatable.

simpleValue was depreciated after version 1 (current version is 3.1.1) and there has been no followup on supporting this in over 3 years.

In the interest of focusing on functionality and stability for current and future versions, we will be closing this. This issue can always be reopened should anyone have enough interest in creating a PR to address this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub - HubSpot/react-select-plus
This fork is no longer actively maintained. ... User-created tags ... import { Creatable } from 'react-select-plus'; function render (selectProps) { return ...
Read more >
TagLibrary - Agillic Developers
If no function is set on any page this tag is fairly pointless. Attributes: ... All attributes available for the text tags is...
Read more >
Incuity Integration Services - Rockwell Automation
When this property is set to False SQL queries using the SQL Query wizard in Excel will not work. This property can be...
Read more >
initial impressions / questions - EagleFiler - C-Command Software ...
(Unfortunately, the normal tag entry fields don't work in table views.) ... web page or article and that's not always the best description)...
Read more >
Tivoli Directory Integrator 7.1.1: Users Guide - IBM
IBM Tivoli Directory Integrator V7.1.1 Problem Determination Guide ... Note: To ensure proper printing of PDF publications, select the Fit to page check...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found