From 091ff0060056eaaf8c88fb6b27526379cbfa5ea3 Mon Sep 17 00:00:00 2001 From: Mike Wheaton Date: Mon, 5 Jun 2017 14:49:17 -0700 Subject: [PATCH] DragDropHelper: Fix TSLint warnings (#1922) * Fix TSLint errors in DragDropHelper.tsx * Add change file for PR --- ...miwhea-dragdrophelper-tslint_2017-06-02-20-06.json | 11 +++++++++++ .../src/utilities/dragdrop/DragDropHelper.tsx | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 common/changes/office-ui-fabric-react/miwhea-dragdrophelper-tslint_2017-06-02-20-06.json diff --git a/common/changes/office-ui-fabric-react/miwhea-dragdrophelper-tslint_2017-06-02-20-06.json b/common/changes/office-ui-fabric-react/miwhea-dragdrophelper-tslint_2017-06-02-20-06.json new file mode 100644 index 0000000000000..c3bb729f4ed23 --- /dev/null +++ b/common/changes/office-ui-fabric-react/miwhea-dragdrophelper-tslint_2017-06-02-20-06.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "packageName": "office-ui-fabric-react", + "comment": "DragDropHelper: Fix TSLint warnings", + "type": "patch" + } + ], + "packageName": "office-ui-fabric-react", + "email": "miwhea@microsoft.com" +} \ No newline at end of file diff --git a/packages/office-ui-fabric-react/src/utilities/dragdrop/DragDropHelper.tsx b/packages/office-ui-fabric-react/src/utilities/dragdrop/DragDropHelper.tsx index b1ba91aa2cb7a..ca8337c617487 100644 --- a/packages/office-ui-fabric-react/src/utilities/dragdrop/DragDropHelper.tsx +++ b/packages/office-ui-fabric-react/src/utilities/dragdrop/DragDropHelper.tsx @@ -179,8 +179,8 @@ export class DragDropHelper implements IDragDropHelper { // We need to add in data so that on Firefox we show the ghost element when dragging onDragStart = (event: DragEvent) => { - event.dataTransfer.setData("id", root.id); - } + event.dataTransfer.setData('id', root.id); + }; events.on(root, 'dragstart', onDragStart); events.on(root, 'mousedown', onMouseDown);