Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
3569fe9c
Commit
3569fe9c
authored
Jul 31, 2024
by
Erick Joseph
Browse files
the fix for the issue where chrome thought the SensitiveInput input was a password field
parent
7a80e732
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/lib/components/common/SensitiveInput.svelte
src/lib/components/common/SensitiveInput.svelte
+8
-1
No files found.
src/lib/components/common/SensitiveInput.svelte
View file @
3569fe9c
...
...
@@ -14,12 +14,13 @@
<div class={outerClassName}>
<input
class={inputClassName}
class:dot={!show}
{placeholder}
bind:value
required={required && !readOnly}
disabled={readOnly}
autocomplete="off"
{...{ type: show ? 'text' : 'password' }}
type="text"
/>
<button
class={showButtonClassName}
...
...
@@ -61,3 +62,9 @@
{/if}
</button>
</div>
<style>
.dot {
-webkit-text-security: disc;
}
</style>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment