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

Dropdown won't be fully disabled #8991

Closed
mogita opened this Issue Jan 17, 2018 · 0 comments

Comments

Projects
None yet
3 participants
@mogita

mogita commented Jan 17, 2018

Version

3.1.3

Environment

Chrome latest, macOS latest, react 16.1.1

Reproduction link

https://codesandbox.io/s/wx6w68vp8

Steps to reproduce

Create a Dropdown.Button component, add a "disabled" prop.

What is expected?

The left-side button and right-side dropdown triangle button both get disabled: not clickable, and turns grey.

What is actually happening?

Only the left-side button gets disabled, while the right-side button remains clickable and in default color, though no menu would appear, which is NOT a full disabled presentation leaving an inconsistent visual appearance.


The right-side button is rendered as a "button" element. Give it a "disabled" prop and it looks perfect.

<button type="button" class="ant-btn ant-dropdown-trigger ant-btn-default" disabled><i class="anticon anticon-down"></i></button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment