improvement(ux): autocomplete off on envvars and toolbar

This commit is contained in:
Emir Karabeg
2025-02-28 17:50:40 -08:00
parent 7774b720f3
commit 7502434738
2 changed files with 13 additions and 1 deletions
@@ -199,8 +199,12 @@ export function EnvironmentVariables({ onOpenChange }: EnvironmentVariablesProps
value={envVar.key}
onChange={(e) => updateEnvVar(index, 'key', e.target.value)}
onPaste={(e) => handlePaste(e, index)}
placeholder="e.g. API_KEY"
placeholder="API_KEY"
autoComplete="off"
autoCorrect="off"
autoCapitalize="off"
spellCheck="false"
name={`env-var-key-${envVar.id || index}-${Math.random()}`}
/>
<Input
data-input-type="value"
@@ -214,6 +218,10 @@ export function EnvironmentVariables({ onOpenChange }: EnvironmentVariablesProps
placeholder="Enter value"
className="allow-scroll"
autoComplete="off"
autoCorrect="off"
autoCapitalize="off"
spellCheck="false"
name={`env-var-value-${envVar.id || index}-${Math.random()}`}
/>
<Button variant="ghost" size="icon" onClick={() => removeEnvVar(index)} className="h-10 w-10">
×
+4
View File
@@ -57,6 +57,10 @@ export function Toolbar() {
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
autoComplete="off"
autoCorrect="off"
autoCapitalize="off"
spellCheck="false"
name={`search-input-${Math.random()}`}
/>
</div>
</div>