Skip to content

Commit e9c4eb6

Browse files
author
waleed
committed
add autocomplete=off to prevent suggestions for subblock values
1 parent 9b90f84 commit e9c4eb6

File tree

8 files changed

+14
-0
lines changed

8 files changed

+14
-0
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel-new/components/editor/components/sub-block/components/document-tag-entry/document-tag-entry.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ export function DocumentTagEntry({
302302
onFocus={handleFocus}
303303
onBlur={handleBlur}
304304
disabled={disabled}
305+
autoComplete='off'
305306
className={cn(
306307
'w-full border-0 text-transparent caret-foreground placeholder:text-muted-foreground/50 focus-visible:ring-0 focus-visible:ring-offset-0',
307308
isDuplicate && 'border-red-500 bg-red-50'
@@ -394,6 +395,7 @@ export function DocumentTagEntry({
394395
value={cellValue}
395396
readOnly
396397
disabled={disabled || isReadOnly}
398+
autoComplete='off'
397399
className='w-full cursor-pointer border-0 text-transparent caret-foreground placeholder:text-muted-foreground/50 focus-visible:ring-0 focus-visible:ring-offset-0'
398400
onClick={handleTypeDropdownClick}
399401
onFocus={handleTypeFocus}
@@ -465,6 +467,7 @@ export function DocumentTagEntry({
465467
onDrop={handlers.onDrop}
466468
onDragOver={handlers.onDragOver}
467469
disabled={disabled}
470+
autoComplete='off'
468471
className='w-full border-0 text-transparent caret-foreground placeholder:text-muted-foreground/50 focus-visible:ring-0 focus-visible:ring-offset-0'
469472
/>
470473
<div className='pointer-events-none absolute inset-0 flex items-center overflow-hidden bg-transparent px-3 text-sm'>

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel-new/components/editor/components/sub-block/components/knowledge-tag-filters/knowledge-tag-filters.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ export function KnowledgeTagFilters({
235235
value={cellValue}
236236
readOnly
237237
disabled={disabled || isLoading}
238+
autoComplete='off'
238239
className='w-full cursor-pointer border-0 text-transparent caret-foreground placeholder:text-muted-foreground/50 focus-visible:ring-0 focus-visible:ring-offset-0'
239240
onClick={handleDropdownClick}
240241
onFocus={handleFocus}
@@ -322,6 +323,7 @@ export function KnowledgeTagFilters({
322323
}
323324
}}
324325
disabled={disabled}
326+
autoComplete='off'
325327
className='w-full border-0 text-transparent caret-foreground placeholder:text-muted-foreground/50 focus-visible:ring-0 focus-visible:ring-offset-0'
326328
/>
327329
<div className='pointer-events-none absolute inset-0 flex items-center overflow-hidden bg-transparent px-3 text-sm'>

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel-new/components/editor/components/sub-block/components/mcp-dynamic-args/mcp-dynamic-args.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ function McpInputWithTags({
113113
onDragOver={handleDragOver}
114114
placeholder={placeholder}
115115
disabled={disabled}
116+
autoComplete='off'
116117
className={cn(!isPassword && 'text-transparent caret-foreground')}
117118
/>
118119
{!isPassword && (

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel-new/components/editor/components/sub-block/components/starter/input-format.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ export function FieldFormat({
331331
}
332332
placeholder={valuePlaceholder}
333333
disabled={isReadOnly}
334+
autoComplete='off'
334335
className={cn('allow-scroll w-full overflow-auto', inputClassName)}
335336
style={{ overflowX: 'auto' }}
336337
/>
@@ -379,6 +380,7 @@ export function FieldFormat({
379380
onChange={(e) => updateField(field.id, 'name', e.target.value)}
380381
placeholder={placeholder}
381382
disabled={isReadOnly}
383+
autoComplete='off'
382384
/>
383385
</div>
384386

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel-new/components/editor/components/sub-block/components/table/table.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ export function Table({
202202
onDrop={handlers.onDrop}
203203
onDragOver={handlers.onDragOver}
204204
disabled={isPreview || disabled}
205+
autoComplete='off'
205206
className='w-full border-0 bg-transparent px-[10px] py-[8px] text-transparent caret-white placeholder:text-[#787878] focus-visible:ring-0 focus-visible:ring-offset-0'
206207
/>
207208
<div

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel-new/components/editor/components/sub-block/components/time-input/time-input.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export function TimeInput({
9494
disabled={isPreview || disabled}
9595
value={value ? formatDisplayTime(value) : ''}
9696
placeholder={placeholder || 'Select time'}
97+
autoComplete='off'
9798
className={cn('cursor-pointer', !value && 'text-muted-foreground', className)}
9899
/>
99100
</div>
@@ -122,6 +123,7 @@ export function TimeInput({
122123
updateTime(numVal.toString())
123124
}}
124125
type='text'
126+
autoComplete='off'
125127
/>
126128
<span className='text-[#E6E6E6]'>:</span>
127129
<Input
@@ -146,6 +148,7 @@ export function TimeInput({
146148
updateTime(undefined, numVal.toString())
147149
}}
148150
type='text'
151+
autoComplete='off'
149152
/>
150153
<Button
151154
variant='outline'

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel-new/components/editor/components/sub-block/components/variables-input/variables-input.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ export function VariablesInput({
408408
}
409409
placeholder={`${assignment.type} value`}
410410
disabled={isPreview || disabled}
411+
autoComplete='off'
411412
className={cn(
412413
'h-9 border border-input bg-white text-transparent caret-foreground placeholder:text-muted-foreground/50 dark:border-input/60 dark:bg-background',
413414
dragHighlight[assignment.id] && 'ring-2 ring-blue-500 ring-offset-2'

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel-new/components/editor/components/sub-block/components/webhook/components/components/webhook-config-field.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export function WebhookConfigField({
8282
value={value}
8383
onChange={onChange ? (e) => onChange(e.target.value) : undefined}
8484
placeholder={placeholder}
85+
autoComplete='off'
8586
className={cn(
8687
'h-10 flex-1',
8788
readOnly ? 'cursor-text font-mono text-xs' : '',

0 commit comments

Comments
 (0)