mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
improvement(ux): autocomplete off on envvars and toolbar
This commit is contained in:
+9
-1
@@ -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">
|
||||
×
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user