-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[BUG] - Input props endContent and isClearable cannot be used at the same time #2254
Comments
@wyx2333333 Are you intending to display both the Clear button and endContent when both endContent and isClearable are specified? I looked at the source code of nextui/input. Currently, if both endContent and isClearable are specified, it seems that the specification replaces the appearance of the Clear button with endContent. I'm not sure if this is the original author's intention, but it appears to be the current behavior. |
yeah. Just like when using the search input like this |
@wyx2333333 |
I have also encountered similar behavior. In my case, it is necessary to show both endContent and isClearable. @kght6123 I look forward to your request being accepted 🤞 |
NextUI Version
2.2.9
Describe the bug
Input cannot use endContent and isClearable together
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
<Input
placeholder="Search Tick"
variant="bordered"
endContent={}
isClearable
/>
Expected behavior
1: show endContent
2: isClearable work
Screenshots or Videos
No response
Operating System Version
macOS
Browser
Chrome
The text was updated successfully, but these errors were encountered: