Skip to content

Adding another inidcator as a cusom button #4925

Answered by ebonow
cubecleveland asked this question in Q&A
Discussion options

You must be logged in to vote

@cubecleveland there are a few events that need to be prevented from propagating to the Control component.

Specifically, onMouseDown, onTouchEnd, and onKeyDown.

Here is an example codesandbox that should work for your use-case.

https://codesandbox.io/s/react-select-add-new-indicator-v9eox

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cubecleveland
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants