Caption editor: add keyboard interaction, disable for single img
This commit is contained in:
parent
b08c10a547
commit
52d3138958
2 changed files with 48 additions and 2 deletions
|
@ -68,7 +68,9 @@ export class AttachmentList extends React.Component<Props> {
|
|||
width={IMAGE_WIDTH}
|
||||
url={getUrl(attachment)}
|
||||
closeButton={true}
|
||||
onClick={onClickAttachment}
|
||||
onClick={
|
||||
attachments.length > 1 ? onClickAttachment : undefined
|
||||
}
|
||||
onClickClose={onCloseAttachment}
|
||||
/>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue