|
1 | 1 | 'use client' |
2 | 2 |
|
3 | 3 | import { useMemo, useRef, useState } from 'react' |
4 | | -import { Plus, Trash2 } from 'lucide-react' |
| 4 | +import { Plus } from 'lucide-react' |
| 5 | +import { Trash } from '@/components/emcn/icons/trash' |
5 | 6 | import { Button } from '@/components/ui/button' |
6 | 7 | import { Input } from '@/components/ui/input' |
7 | 8 | import { MAX_TAG_SLOTS } from '@/lib/knowledge/consts' |
@@ -301,6 +302,7 @@ export function DocumentTagEntry({ |
301 | 302 | onFocus={handleFocus} |
302 | 303 | onBlur={handleBlur} |
303 | 304 | disabled={disabled} |
| 305 | + autoComplete='off' |
304 | 306 | className={cn( |
305 | 307 | 'w-full border-0 text-transparent caret-foreground placeholder:text-muted-foreground/50 focus-visible:ring-0 focus-visible:ring-offset-0', |
306 | 308 | isDuplicate && 'border-red-500 bg-red-50' |
@@ -393,6 +395,7 @@ export function DocumentTagEntry({ |
393 | 395 | value={cellValue} |
394 | 396 | readOnly |
395 | 397 | disabled={disabled || isReadOnly} |
| 398 | + autoComplete='off' |
396 | 399 | 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' |
397 | 400 | onClick={handleTypeDropdownClick} |
398 | 401 | onFocus={handleTypeFocus} |
@@ -464,6 +467,7 @@ export function DocumentTagEntry({ |
464 | 467 | onDrop={handlers.onDrop} |
465 | 468 | onDragOver={handlers.onDragOver} |
466 | 469 | disabled={disabled} |
| 470 | + autoComplete='off' |
467 | 471 | className='w-full border-0 text-transparent caret-foreground placeholder:text-muted-foreground/50 focus-visible:ring-0 focus-visible:ring-offset-0' |
468 | 472 | /> |
469 | 473 | <div className='pointer-events-none absolute inset-0 flex items-center overflow-hidden bg-transparent px-3 text-sm'> |
@@ -507,7 +511,7 @@ export function DocumentTagEntry({ |
507 | 511 | className='-translate-y-1/2 absolute top-1/2 right-2 h-8 w-8 opacity-0 group-hover:opacity-100' |
508 | 512 | onClick={() => handleDeleteRow(rowIndex)} |
509 | 513 | > |
510 | | - <Trash2 className='h-4 w-4 text-muted-foreground' /> |
| 514 | + <Trash className='h-4 w-4 text-muted-foreground' /> |
511 | 515 | </Button> |
512 | 516 | </td> |
513 | 517 | ) : null |
|
0 commit comments