react-select icon indicating copy to clipboard operation
react-select copied to clipboard

No cursor to enter text when once user right clicks on the textbox in Mac-OS

Open darshikagupta opened this issue 5 years ago • 6 comments

No cursor to enter text when once user right clicks on the textbox in Mac-OS. Only when user now clicks outside the text box does the cursor appears.

Tried a lot to resolve but saw the same functionality in the official site.

darshikagupta avatar May 29 '20 11:05 darshikagupta

@darshikagupta can you confirm if this is still an issue for you and if so, what browser. I am running OSX Chrome and not experiencing any of the behavior you are describing.

ebonow avatar Dec 04 '20 05:12 ebonow

We will be closing this to focus on remaining react-select issues. If you wish to provide a codesandbox demonstrating the behavior, someone we may able to provide more direction on next steps and we can re-open this issue if necessary.

ebonow avatar Dec 18 '20 17:12 ebonow

Hi, we're seeing this issue in our app as well

Seeing it happen in chrome on Mac, haven't tested other configurations: https://codesandbox.io/s/reverent-austin-i0wif?file=/src/App.tsx

depsypher avatar Dec 19 '20 18:12 depsypher

@depsypher I verified that the behavior is indeed different from right-clicking an input.

I will re-open this to further investigate, but I will also add that this appears to be by design for some reason: https://github.com/JedWatson/react-select/blob/d1e660c6b261d7fd60a85a6eca2ee9e3e0348ea2/packages/react-select/src/Select.js#L914-L917

It should also be easy enough to work around if you were looking to add this compatibility by adding an onClick handler that focuses the select.

ebonow avatar Dec 19 '20 21:12 ebonow

@ebonow I'm trying to figure out how to implement the workaround you mention - "adding an onClick handler that focuses the select". Which component do I need to add an onClick handler to? One of the internal components?

Any idea why that onMenuMouseDown handler is squelching right-click?

stickfigure avatar Feb 01 '22 20:02 stickfigure

Curious about this too. Any way to bypass onMenuMouseDown ignoring everything other than left click?

n3ps avatar Sep 13 '24 01:09 n3ps