From 13b33420177f3128eda905d535930a8d35652da2 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Tue, 21 Jan 2025 12:52:41 -0500 Subject: [PATCH] fix slot names (#577) --- docs/docs/resources/changelog.md | 3 +-- src/components/input/input.ts | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/docs/resources/changelog.md b/docs/docs/resources/changelog.md index d03582ab5..4640ef2ff 100644 --- a/docs/docs/resources/changelog.md +++ b/docs/docs/resources/changelog.md @@ -12,11 +12,10 @@ Components with the Experimental bad During the alpha period, things might break! We take breaking changes very seriously, but sometimes they're necessary to make the final product that much better. We appreciate your patience! ::: - +- Fixed slot names for `show-password-icon` and `hide-password-icon` in `` to more intuitively represent their functions ## 3.0.0-alpha.9 diff --git a/src/components/input/input.ts b/src/components/input/input.ts index 30d481c2a..053c6376b 100644 --- a/src/components/input/input.ts +++ b/src/components/input/input.ts @@ -475,15 +475,15 @@ export default class WaInput extends WebAwesomeFormAssociatedElement { @click=${this.handlePasswordToggle} tabindex="-1" > - ${this.passwordVisible + ${!this.passwordVisible ? html` - + ` : html` - + `}