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.

[v2] Custom styles not passing data for components.Option

See original GitHub issue

Are you reporting a bug or runtime error?

Click on the Select and see the error https://codesandbox.io/s/00zqzj8mjv

I’m trying to get the option callback to pass the data of my option, but it is returning undefined when I’m using a custom component.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
khuezycommented, Sep 8, 2018

Thanks @sahibjotsaggu !

1reaction
sahibjotsaggucommented, Sep 8, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

React-Select - Replacing Components for custom option content
The data in props is where your option data is. ... If you want to style your option when it has been selected...
Read more >
Styles - React Select
The recommended way to provide custom styles to react-select is to use the styles prop. styles takes an object with keys to represent...
Read more >
How To Style React Components | DigitalOcean
In this tutorial, you'll learn three different ways to style React components: plain Cascading Style Sheets (CSS), inline styles with JavaScript ...
Read more >
Customizing Reusable React-Select menu & options ...
In this case, it exposes the custom changeOptionsData props (which we will soon pass a function as it's value) we passed to the...
Read more >
Create and Style Custom Components - Twilio Flex
It may not always be practical to define your styles alongside each component. Maybe you are using shared stylesheets across a suite of...
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