Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add keys to RangeSlider children #128

Open
maedi opened this issue Jul 21, 2020 · 1 comment
Open

Add keys to RangeSlider children #128

maedi opened this issue Jul 21, 2020 · 1 comment

Comments

@maedi
Copy link

maedi commented Jul 21, 2020

React complains that RangeSlider children don't have key props:

Warning: Each child in a list should have a unique "key" prop.

Check the render method of `ComponentEnhancer(Range)`. See https://fb.me/react-warning-keys for more information.
    in Handle (created by ComponentEnhancer(Range))
    in ComponentEnhancer(Range) (created by Context.Consumer)
    in Styled(ComponentEnhancer(Range)) (created by RangeSliderUI)
    in RangeSliderUI (created by RangeSliderStatic)
    in RangeSliderStatic (created by RangeSlider)
    in RangeSlider (created by Range)
    in div (created by Range)
    in Range (created by SearchBlock)
    in div (created by SearchBlock)
    in div (created by SearchBlock)
    in div (created by SearchBlock)
    in ThemeProvider (created by Provider$$1)
    in LiveAnnouncer (created by Provider$$1)
    in Provider (created by Provider$$1)
    in Provider$$1 (created by SearchBlock)
    in SearchBlock (created by HotExportedSearchBlock)
    in AppContainer (created by HotExportedSearchBlock)
    in HotExportedSearchBlock

My RangeSlider component works without issue and looks like:

<RangeSlider filter={props.filter} step={props.step} />

Source:
https://github.com/morpht/sajari-configurator

@benhinchley
Copy link
Member

Hi @maedi this appears to be an issue in an upstream package react-component/slider#358. The message you see rendered in the browser console is just a warning and will not affect the functionality of the component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants