Skip to content

Commit

Permalink
fix(input): clearable feature (#2031)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgarciadev authored Nov 24, 2023
1 parent 0ba165f commit 436ba1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/orange-waves-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/input": patch
---

Fix #1984 input clearable feature fixed
1 change: 1 addition & 0 deletions packages/components/input/src/use-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export function useInput<T extends HTMLInputElement | HTMLTextAreaElement = HTML
const {labelProps, inputProps, descriptionProps, errorMessageProps} = useTextField(
{
...originalProps,
value: inputValue,
"aria-label": safeAriaLabel(
originalProps?.["aria-label"],
originalProps?.label,
Expand Down

2 comments on commit 436ba1c

@vercel
Copy link

@vercel vercel bot commented on 436ba1c Nov 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 436ba1c Nov 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.