Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cascader allows inputing disabled values while searching #4699

Closed
TomNaessens opened this issue Jan 24, 2017 · 2 comments
Closed

Cascader allows inputing disabled values while searching #4699

TomNaessens opened this issue Jan 24, 2017 · 2 comments
Assignees

Comments

@TomNaessens
Copy link

English user, translated template:

Environment(required)

  • antd version: 2.6.4
  • OS and its version: All
  • Browser and its version: Chrome, FF (others may too, only tested there)

What did you do? Please provide steps to re-produce your problem.

  1. Add a cascader
  2. Enable showSearch
  3. Add an onChange callback
  4. Add some disabled options
  5. Search for the disabled option
  6. Click it

What do you expected?

I expected not to be able to click on the disabled option

What happen?

The disabled value got sent to onChange

Re-producible online demo

Search for Zhong Hua men on:
http://codepen.io/anon/pen/PWjarP

@benjycui
Copy link
Contributor

benjycui commented Jan 24, 2017

We should not show disabled option while searching.

Should show but not clickable.

@lock
Copy link

lock bot commented May 2, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants