From 0bfb22053864789fdd4f06562e7fc1ba311c88e7 Mon Sep 17 00:00:00 2001 From: Cheena Malhotra <13396919+cheenamalhotra@users.noreply.github.com> Date: Fri, 28 Oct 2022 17:14:40 -0700 Subject: [PATCH] Fix bug where username/password values not clearing. (#21033) --- .../workbench/services/connection/browser/connectionWidget.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sql/workbench/services/connection/browser/connectionWidget.ts b/src/sql/workbench/services/connection/browser/connectionWidget.ts index b3f7bea519..e29c588b95 100644 --- a/src/sql/workbench/services/connection/browser/connectionWidget.ts +++ b/src/sql/workbench/services/connection/browser/connectionWidget.ts @@ -527,8 +527,8 @@ export class ConnectionWidget extends lifecycle.Disposable { protected onAuthTypeSelected(selectedAuthType: string) { let currentAuthType = this.getMatchingAuthType(selectedAuthType); - this._userNameInputBox.value === ''; - this._passwordInputBox.value === ''; + this._userNameInputBox.value = ''; + this._passwordInputBox.value = ''; this._userNameInputBox.hideMessage(); this._passwordInputBox.hideMessage(); this._azureAccountDropdown.hideMessage();