Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix click behavior in ListItemAttachments component #1692

Merged
merged 1 commit into from Nov 9, 2023
Merged

Fix click behavior in ListItemAttachments component #1692

merged 1 commit into from Nov 9, 2023

Conversation

yannikreiter-maxworx
Copy link
Contributor

Q A
Bug fix? [x]
New feature? [ ]
New sample? [ ]
Related issues? fixes #1679

What's in this Pull Request?

This PR contains the fix for #1679

Problem

Clicking the document card when no itemId is present results in an invalid url being opened.

Solution

Only add onClick and onClickHref props when itemId is present.

ListItemAttachments component
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the first contribution to this project.

@michaelmaillot michaelmaillot self-assigned this Nov 9, 2023
@michaelmaillot
Copy link
Collaborator

Hi @yannikreiter-maxworx,

Thanks for this PR!

Nothing to say, ready to be merged!

@michaelmaillot michaelmaillot merged commit 7bc4cb3 into pnp:dev Nov 9, 2023
1 check passed
@michaelmaillot michaelmaillot added this to the 3.16.0 milestone Nov 9, 2023
@yannikreiter-maxworx yannikreiter-maxworx deleted the issue-1679 branch November 10, 2023 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants