React-select: How to debug & change css of the outer menu wrapper?

Created on 17 Jan 2017  路  6Comments  路  Source: JedWatson/react-select

Hi Jed. I want to debug and change some position of the dropdown menu wrapper but how I can do this if the dropdown is always closed when I am trying to select it in a devtool ? How I can do that? Thanks!

P.S. maybe it will be good to allow user to disable that feature (hide menu on an outside click).

Most helpful comment

I've run into this as well. How I've been able to get at the styles is throw a debugger in onBlur and then, in chrome dev tools at least, you can go to the elements tab and mess around with the styles while the script is paused.

All 6 comments

I've run into this as well. How I've been able to get at the styles is throw a debugger in onBlur and then, in chrome dev tools at least, you can go to the elements tab and mess around with the styles while the script is paused.

Thank you a lot. Because I disabled this possibility into the plugin source code and it's a little bit boring to do it again when I want to change something. Your solution looks nice and better.

@wellnine you can use react dev tools and change isOpen state too.

@wellnine @joaoahmad recommendation is the best way to debug the CSS . This allows our API surface to be small.

Thanks @alansalnikov it's working onBlur={()=> { debugger}}

Thanks @alansalnikov @joaoahmad

onBlur={()=> { debugger }}

Its work fine! :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mbonaci picture mbonaci  路  3Comments

ericj17 picture ericj17  路  3Comments

yrabinov picture yrabinov  路  3Comments

coder-guy22296 picture coder-guy22296  路  3Comments

geraldfullam picture geraldfullam  路  3Comments