mirror of https://github.com/langgenius/dify.git
fix: resolve semantic conflict in TimePicker notClearable logic
This commit is contained in:
parent
85f1cf1d90
commit
b8862293b6
|
|
@ -222,8 +222,10 @@ const TimePicker = ({
|
|||
<RiCloseCircleFill
|
||||
className={cn(
|
||||
'hidden h-4 w-4 shrink-0 text-text-quaternary',
|
||||
(displayValue || (isOpen && selectedTime)) && 'hover:text-text-secondary group-hover:inline-block',
|
||||
(displayValue || (isOpen && selectedTime)) && !notClearable && 'hover:text-text-secondary group-hover:inline-block',
|
||||
)}
|
||||
role='button'
|
||||
aria-label={t('common.operation.clear')}
|
||||
onClick={handleClear}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue