From 6af79c9092a6446d79b35705474717efcce38c4c Mon Sep 17 00:00:00 2001 From: Ben Silverman Date: Sun, 27 Dec 2020 22:37:23 -0500 Subject: [PATCH] #107 Ensure data-key attr exists on event target Fixes #107. --- src/components/DocumentList/DocumentList.js | 12 ++++++++++-- src/pages/groups/index.jsx | 5 ++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/components/DocumentList/DocumentList.js b/src/components/DocumentList/DocumentList.js index ffb14127..00d2fc33 100644 --- a/src/components/DocumentList/DocumentList.js +++ b/src/components/DocumentList/DocumentList.js @@ -146,8 +146,16 @@ const DocumentList = ({ }} data-key={document._id} > - - Delete + + + Delete + { onClick={handleShowModal} data-key={group.id} > - + Delete