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.

[1.5.1] Broken when using defaultText

See original GitHub issue

When a default prop is passed to the Select component in example here:

<Select
  onSelect = {d => this.props.onChange({farm : d})}
  defaultText  = "Choose"
  {
    this.state.farms.map((farm, key) => 
      <Option value={farm.id} key={key}>{farm.name}</Option>
    )
  }
</Select>

This will render the input selected to defaultText and not the selected value.

Making a PR to fix it

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
st0fferncommented, May 12, 2017

If you initialize the Select with defaultText and the master component rerenders, the Select will fall back to the defaultText…

0reactions
gs-akhancommented, May 12, 2017

Version 1.5.2 I’ve published it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changelog - Bricks Builder
Update default WooCommerce templates (for WC 7.0.1)Improve; WooCommerce: Product Stock (element & DD tag) not working with variable productsImprove; WooCommerce ...
Read more >
[Advanced Custom Fields: Validated Field] Support - page 2
Use default ACF validation warnings. Started by: John ... Input mask doesn't work in version 1.5.1 ... Switch from Validated to default text...
Read more >
Release notes for Azure Data Studio - Microsoft Learn
Notebooks, Fixed a bug that caused text cells to be erroneously created in split view mode when the notebook default text edit mode...
Read more >
The Elementor Pro Changelog- Version Updates
What has changed in the recent version of Elementor Pro? Get the latest updates to the Elementor Pro plugin. Click to know more....
Read more >
Mac Release Notes - Things Support - Cultured Code
Fixed a problem with sync scheduling when the app was deactivated. Disabled date-related keyboard shortcuts for to-dos inside repeating projects. Various model ...
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