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

Suffix icon behavior for undefined is inconsistent between components #48847

Open
wctiger opened this issue May 9, 2024 · 3 comments
Open

Suffix icon behavior for undefined is inconsistent between components #48847

wctiger opened this issue May 9, 2024 · 3 comments
Labels
improvement improve some features

Comments

@wctiger
Copy link

wctiger commented May 9, 2024

Reproduction link

Edit on StackBlitz

Steps to reproduce

Check the suffix icon of Select and DatePicker in the provided example

What is expected?

specifying undefined in suffixIcon in all components should yield the same UI behavior - either displaying nothing or the default icon, but not both

What is actually happening?

specifying undefined in Select renders the default caret, and the same value in DatePicker is rendering nothing

Environment Info
antd 5.17.0
React ^18
System Windows 11
Browser Chrome 123
Copy link

stackblitz bot commented May 9, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@afc163
Copy link
Member

afc163 commented May 10, 2024

What is expected? displaying nothing or the default icon?

@wctiger
Copy link
Author

wctiger commented May 10, 2024 via email

@MadCcc MadCcc added improvement improve some features and removed unconfirmed labels May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement improve some features
Projects
None yet
Development

No branches or pull requests

3 participants