Skip to content

Commit 71b7cdf

Browse files
committed
deactivated visibility toggle always type password
1 parent 73217f9 commit 71b7cdf

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' ? 'password' : this._passwordVisible ? 'text' : 'password',
126126
state: this.state,
127127
ariaDescribedBy,
128128
...this.controller.onFacade,

0 commit comments

Comments
 (0)