Skip to content

Commit

Permalink
fix: remove autocomplete from faucet input
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az committed May 14, 2024
1 parent 900828e commit def7f9d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions app/src/lib/components/search-bar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ onMount(() => {
type="search"
pattern="[a-z]"
autocorrect="off"
autocomplete="off"
spellcheck="false"
autocapitalize="off"
placeholder="Search..."
Expand Down
15 changes: 9 additions & 6 deletions app/src/routes/faucet/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -102,20 +102,23 @@ const handleMouseLeave = () => {
<div class="relative">
<Input
{...attrs}
spellcheck={false}
bind:value={$formData.address}
pattern={unionAddressRegex.source}
on:focus={handleFocus}
autocorrect="off"
autocomplete="off"
spellcheck="false"
autocapitalize="none"
on:blur={handleBlur}
on:mouseenter={handleMouseEnter}
on:focus={handleFocus}
bind:value={$formData.address}
on:mouseleave={handleMouseMove}
on:mouseenter={handleMouseEnter}
pattern={unionAddressRegex.source}
placeholder="union14qemq0vw6y3gc3u3e0aty2e764u4gs5lnxk4rv"
class="h-12 w-full cursor-default rounded-md border border-slate-800 bg-neutral-950 p-3.5 text-slate-100 transition-colors duration-500 placeholder:select-none placeholder:text-neutral-600 focus:border-[#8678F9] focus:outline-none"
title="Must be a valid Union address (bech32, starts with `union`)"
/>
<input
bind:this={input}
disabled
bind:this={input}
aria-hidden="true"
style={`
opacity: ${opacity};
Expand Down

0 comments on commit def7f9d

Please sign in to comment.