fix: resolve semantic conflict in TimePicker notClearable logic

This commit is contained in:
lyzno1 2025-10-10 15:17:19 +08:00
parent 85f1cf1d90
commit b8862293b6
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -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>