mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-24 06:50:25 +02:00
fixed RedactedPasswordInput to prevent sending empty string of settings form resave
This commit is contained in:
1 parent
01e13f5717
commit
4d44f1cb5c
28 files changed
+38
-36
No files matched your search
@@ -2,8 +2,8 @@
|
||||
import { tick } from "svelte";
|
||||
import tooltip from "@/actions/tooltip";
|
||||
|
||||
export let value = undefined; // note must be undefined so that it can be skipped from the submit data
|
||||
export let mask = false;
|
||||
export let value = "";
|
||||
|
||||
let inputElem;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<input readonly type="text" placeholder="******" {...$$restProps} />
|
||||
<input disabled type="text" placeholder="******" {...$$restProps} />
|
||||
{:else}
|
||||
<input bind:this={inputElem} bind:value type="password" autocomplete="new-password" {...$$restProps} />
|
||||
{/if}
|
||||
Reference in new issue
Block a user