Skip to content

Commit

Permalink
fix: upload file not clickable in firefox (#1552)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywoola authored Nov 17, 2023
1 parent d048557 commit 19fc9e3
Show file tree
Hide file tree
Showing 3 changed files with 181 additions and 574 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/base/image-uploader/uploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''}
Expand Down
Loading

0 comments on commit 19fc9e3

Please sign in to comment.