Skip to content

Commit

Permalink
#107 Ensure data-key attr exists on event target
Browse files Browse the repository at this point in the history
Fixes #107.
  • Loading branch information
blms committed Dec 28, 2020
1 parent 837cd4a commit 6af79c9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/components/DocumentList/DocumentList.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,16 @@ const DocumentList = ({
}}
data-key={document._id}
>
<TrashFill className="align-text-bottom mr-1" />
<span className="d-sm-none d-xl-inline">Delete</span>
<TrashFill
className="align-text-bottom mr-1"
data-key={document._id}
/>
<span
data-key={document._id}
className="d-sm-none d-xl-inline"
>
Delete
</span>
</Button>
<ConfirmationDialog
name={document.title}
Expand Down
5 changes: 4 additions & 1 deletion src/pages/groups/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ const GroupList = ({ query, initAlerts, statefulSession }) => {
onClick={handleShowModal}
data-key={group.id}
>
<TrashFill className="align-text-bottom mr-1" />
<TrashFill
data-key={group.id}
className="align-text-bottom mr-1"
/>
Delete
</Button>
<ConfirmationDialog
Expand Down

0 comments on commit 6af79c9

Please sign in to comment.