about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-06-13 01:56:47 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-06-13 01:56:47 +0200
commit3c93a671aa6eedb895cbdbf7ab74100beddcfd46 (patch)
treeef64644302203810d33fe4e4b302ea910c8fcb40 /MatrixRoomUtils.Web
parentImproved many features (diff)
downloadMatrixUtils-3c93a671aa6eedb895cbdbf7ab74100beddcfd46.tar.xz
Fix passwords being visible during editing
Diffstat (limited to 'MatrixRoomUtils.Web')
-rw-r--r--MatrixRoomUtils.Web/Shared/SimpleComponents/FancyTextBox.razor2
1 files changed, 1 insertions, 1 deletions
diff --git a/MatrixRoomUtils.Web/Shared/SimpleComponents/FancyTextBox.razor b/MatrixRoomUtils.Web/Shared/SimpleComponents/FancyTextBox.razor
index 9c325a7..702d41e 100644
--- a/MatrixRoomUtils.Web/Shared/SimpleComponents/FancyTextBox.razor
+++ b/MatrixRoomUtils.Web/Shared/SimpleComponents/FancyTextBox.razor
@@ -1,7 +1,7 @@
 @inject IJSRuntime JsRuntime
 @if (isVisible)
 {
-    <input autofocus @bind="Value" @onfocusout="() => { isVisible = false; ValueChanged.InvokeAsync(Value); }" @ref="elementToFocus"/>
+    <input autofocus type="@(IsPassword ? "password" : "text")" @bind="Value" @onfocusout="() => { isVisible = false; ValueChanged.InvokeAsync(Value); }" @ref="elementToFocus"/>
 }
 else
 {