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.

controlled Select wont hide Options after click

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.5.0

Environment

React 16.2 below

Reproduction link

https://codepen.io/anon/pen/ZoaKvV?editors=1111

Steps to reproduce

1.set React version <=16.2.0 2.set Antd version 3.5.0 3.open the link

What is expected?

hide options after click any option

What is actually happening?

1.options menu stays open after click new option 2.options menu closes only after click old option


this only happens on React<= 16.2.0 & Antd=3.5.0 & controlled select, the change log indicates the update of rc-select dependency , maybe that?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
CodePlayer7commented, May 8, 2018

@yesmeck React 16.2.0 still has the problem. see. Do you mean we cannot use antd 3.5.0 under React 16.2.0? The link u provided is under latest React (16.3.2). It’s definitely fine as my former statement.

1reaction
daggerjamescommented, May 7, 2018

+1 for same issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hide option from select control on button click
how can I hide options with value 24 and 32 on inputelement. attr("id") === "tv1" and for all other options hide displayed values...
Read more >
Track changes in Word
To track only your own changes - On the Review tab, select Track Changes > Just Mine. ... Hiding changes doesn't remove them...
Read more >
Forms in HTML documents
Control types created with INPUT; Examples of forms containing INPUT controls. The BUTTON element; The SELECT , OPTGROUP , and OPTION elements.
Read more >
Change Desktop & Dock settings on Mac
To change these settings, choose Apple menu > System Settings, then click ... On Desktop Only: Hide and show the menu bar when...
Read more >
Select API - Material UI
Name Type Default autoWidth bool false children node classes object
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