Skip to content

Commit

Permalink
fix: a small eye icon for password input in edge(heroui-inc#4927)
Browse files Browse the repository at this point in the history
  • Loading branch information
linyonglu committed Feb 27, 2025
1 parent 66d2c2b commit e125e80
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/slow-gifts-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@heroui/input": patch
---

fix a small eye icon for password input in edge browser(#4927)
7 changes: 6 additions & 1 deletion packages/components/input/src/use-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,12 @@ export function useInput<T extends HTMLInputElement | HTMLTextAreaElement = HTML
"data-has-start-content": dataAttr(hasStartContent),
"data-has-end-content": dataAttr(!!endContent),
className: slots.input({
class: clsx(classNames?.input, isFilled ? "is-filled" : "", isMultiline ? "pe-0" : ""),
class: clsx(
classNames?.input,
isFilled ? "is-filled" : "",
isMultiline ? "pe-0" : "",
type === "password" ? "[&::-ms-reveal]:hidden" : "",
),
}),
...mergeProps(
focusProps,
Expand Down

0 comments on commit e125e80

Please sign in to comment.