mirror of
https://github.com/langgenius/dify.git
synced 2026-04-27 19:27:23 +08:00
fix: resolve semantic conflict in TimePicker notClearable logic
This commit is contained in:
parent
85f1cf1d90
commit
b8862293b6
@ -222,8 +222,10 @@ const TimePicker = ({
|
|||||||
<RiCloseCircleFill
|
<RiCloseCircleFill
|
||||||
className={cn(
|
className={cn(
|
||||||
'hidden h-4 w-4 shrink-0 text-text-quaternary',
|
'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}
|
onClick={handleClear}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user