Unverified Commit ef36b216 authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #4253 from erickgamer787/fix-SensitiveInput-for-admin-pages

fix: Fix the SensitiveInput  the browser thought it was a password field
parents 6ecb7c80 c44e51ae
...@@ -154,3 +154,7 @@ input[type='number'] { ...@@ -154,3 +154,7 @@ input[type='number'] {
.tippy-box[data-theme~='dark'] { .tippy-box[data-theme~='dark'] {
@apply rounded-lg bg-gray-950 text-xs border border-gray-900 shadow-xl; @apply rounded-lg bg-gray-950 text-xs border border-gray-900 shadow-xl;
} }
.password {
-webkit-text-security: disc;
}
...@@ -13,13 +13,13 @@ ...@@ -13,13 +13,13 @@
<div class={outerClassName}> <div class={outerClassName}>
<input <input
class={inputClassName} class={`${inputClassName} ${show ? '' : 'password'}`}
{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}
......
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