Skip to content

ListItemAttachments: Attachment preview opens invalid URL in a new form #1679

@yannikreiter-maxworx

Description

@yannikreiter-maxworx

Category

[ ] Enhancement

[x] Bug

[ ] Question

Version

3.15.0

Desired Behavior

When using the ListItemAttachments component to upload files in a new form, after a file has been added, clicking the file preview to open the file should be disabled.

Observed Behavior

When using the ListItemAttachments component to upload files in a new form, after a file has been added, clicking the image preview results in the url "https://example.sharepoint.com/sites/example/_layouts/15/undefined?web=1" being opened:

ListItemAttachments

Steps to Reproduce

  1. Use 'Add Attachment' button to add an attachment in a new form
  2. Click the attachment preview

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions