Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

114
Views
Prevent dropdown from closing when clicking checkbox-label inside dropdown of react-select

I'm trying to put a couple of checkboxes inside the dropdown of React-select to filter the options of the dropdown.

I've seen this: React-Select custom input inside MenuList and tried to replicate this: https://codesandbox.io/embed/m75wlyx3oy. It seems like the prop onMenuInputFocus is the key here. But this prop doesn't exist anymore in the version I'm using(5.2.1^).

I am able to click the checkbox itself without closing the dropdown by stopping the event propagation. But that doesn't seem to work when clicking the label.

Does anyone know of an alternative to onMenuInputFocus? Or another way to keep the dropdown open?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!