[1.5.1] Broken when using defaultText
See original GitHub issueWhen 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:
- Created 6 years ago
- Comments:10 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If you initialize the Select with
defaultText
and the master component rerenders, the Select will fall back to the defaultText…Version 1.5.2 I’ve published it