feat: Add new-password autocomplete to hideText input in TextInput.svelte
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
<!-- Since svelte doesn't allow two-way binding for dynamic types, we use this -->
|
<!-- Since svelte doesn't allow two-way binding for dynamic types, we use this -->
|
||||||
|
|
||||||
{#if hideText}
|
{#if hideText}
|
||||||
|
<!-- new-password disables autofill -->
|
||||||
<input
|
<input
|
||||||
class={"border border-darkborderc peer focus:border-borderc rounded-md shadow-sm text-textcolor bg-transparent focus:ring-borderc focus:ring-2 focus:outline-none transition-colors duration-200" + ((className) ? (' ' + className) : '')}
|
class={"border border-darkborderc peer focus:border-borderc rounded-md shadow-sm text-textcolor bg-transparent focus:ring-borderc focus:ring-2 focus:outline-none transition-colors duration-200" + ((className) ? (' ' + className) : '')}
|
||||||
class:text-sm={size === 'sm'}
|
class:text-sm={size === 'sm'}
|
||||||
@@ -22,7 +23,7 @@
|
|||||||
class:h-full={fullh}
|
class:h-full={fullh}
|
||||||
class:text-textcolor2={disabled}
|
class:text-textcolor2={disabled}
|
||||||
|
|
||||||
{autocomplete}
|
autocomplete="new-password"
|
||||||
{placeholder}
|
{placeholder}
|
||||||
id={id}
|
id={id}
|
||||||
type="password"
|
type="password"
|
||||||
|
|||||||
Reference in New Issue
Block a user