mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-15 02:48:17 +08:00
fix: upload file not clickable in firefox (#1552)
This commit is contained in:
parent
d048557bfe
commit
19fc9e3466
@ -157,8 +157,8 @@ const ParamsConfig: FC = () => {
|
||||
<PortalToFollowElemContent style={{ zIndex: 50 }}>
|
||||
<div className='w-[240px] p-4 bg-white rounded-lg border-[0.5px] border-gray-200 shadow-lg space-y-3'>
|
||||
{PARAMS_KEY.map((key: string) => {
|
||||
const currentValue = key === 'top_k' ? datasetConfigs[key] : (datasetConfigs as any)[key].value
|
||||
const currentEnableState = key === 'top_k' ? true : (datasetConfigs as any)[key].enable
|
||||
const currentValue = key === 'top_k' ? datasetConfigs[key] : (datasetConfigs as any)[key]?.value
|
||||
const currentEnableState = key === 'top_k' ? true : (datasetConfigs as any)[key]?.enable
|
||||
return (
|
||||
<ParamItem
|
||||
key={key}
|
||||
|
@ -85,7 +85,7 @@ const Uploader: FC<UploaderProps> = ({
|
||||
{children(hovering)}
|
||||
<input
|
||||
className={`
|
||||
absolute block inset-0 opacity-0 text-[0]
|
||||
absolute block inset-0 opacity-0 text-[0] w-full
|
||||
${disabled ? 'cursor-not-allowed' : 'cursor-pointer'}
|
||||
`}
|
||||
onClick={e => (e.target as HTMLInputElement).value = ''}
|
||||
|
749
web/yarn.lock
749
web/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user