Skip to content

Commit

Permalink
Merge pull request #108 from dev-family/ADM-185
Browse files Browse the repository at this point in the history
(ADM-185: (Fix) SelectInput disable drag&drop with disable prop
  • Loading branch information
aMurashkoWebSecret authored Dec 11, 2023
2 parents 4a36f8d + acdee6a commit e998872
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion admiral/ui/Upload/Upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const InternalUpload: React.ForwardRefRenderFunction<unknown, UploadProps> = (pr
onRemove={handleRemove}
onPreview={onPreview}
onDownload={onDownload}
onDragEnd={isDraggable ? onDragEnd : undefined}
onDragEnd={isDraggable && !disabled ? onDragEnd : undefined}
showRemoveIcon={!disabled && showRemoveIcon}
showPreviewIcon={!!onPreview}
showDownloadIcon={showDownloadIcon}
Expand Down
2 changes: 1 addition & 1 deletion lib/admiral.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -93989,7 +93989,7 @@ const InternalUpload = (props, ref) => {
onRemove: handleRemove,
onPreview,
onDownload,
onDragEnd: isDraggable ? onDragEnd3 : void 0,
onDragEnd: isDraggable && !disabled2 ? onDragEnd3 : void 0,
showRemoveIcon: !disabled2 && showRemoveIcon,
showPreviewIcon: !!onPreview,
showDownloadIcon,
Expand Down
2 changes: 1 addition & 1 deletion lib/admiral.umd.js

Large diffs are not rendered by default.

0 comments on commit e998872

Please sign in to comment.