Skip to content

Commit d71e7ba

Browse files
authored
fix: input password - deactivated visibility toggle always type password (#10026)
2 parents 4ff9e23 + 51238cf commit d71e7ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/components/src/components/input-password

packages/components/src/components/input-password/shadow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export class KolInputPassword implements InputPasswordAPI, FocusableElement {
122122

123123
return {
124124
ref: this.setInputRef,
125-
type: this._passwordVisible ? 'text' : 'password',
125+
type: (this._variant === 'visibility-toggle' && this._passwordVisible) ? 'text' : 'password',
126126
state: this.state,
127127
ariaDescribedBy,
128128
...this.controller.onFacade,

0 commit comments

Comments
 (0)