Commit 3569fe9c authored by Erick Joseph's avatar Erick Joseph
Browse files

the fix for the issue where chrome thought the SensitiveInput input was a password field

parent 7a80e732
...@@ -14,12 +14,13 @@ ...@@ -14,12 +14,13 @@
<div class={outerClassName}> <div class={outerClassName}>
<input <input
class={inputClassName} class={inputClassName}
class:dot={!show}
{placeholder} {placeholder}
bind:value bind:value
required={required && !readOnly} required={required && !readOnly}
disabled={readOnly} disabled={readOnly}
autocomplete="off" autocomplete="off"
{...{ type: show ? 'text' : 'password' }} type="text"
/> />
<button <button
class={showButtonClassName} class={showButtonClassName}
...@@ -61,3 +62,9 @@ ...@@ -61,3 +62,9 @@
{/if} {/if}
</button> </button>
</div> </div>
<style>
.dot {
-webkit-text-security: disc;
}
</style>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment