From eba0f22f1bcdb04d90de8ef12b7c8a3542725b64 Mon Sep 17 00:00:00 2001 From: dillon Date: Fri, 4 Sep 2015 14:17:37 -0700 Subject: [PATCH] fix(token): drag and dropping a token no longer shows the plus sign. fixes T3390. Test Plan: tested manually. all tests remain green. Reviewers: bengotow Maniphest Tasks: T3390 Differential Revision: https://phab.nylas.com/D1988 --- src/components/tokenizing-text-field.cjsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/tokenizing-text-field.cjsx b/src/components/tokenizing-text-field.cjsx index bb960d129..f602f53bf 100644 --- a/src/components/tokenizing-text-field.cjsx +++ b/src/components/tokenizing-text-field.cjsx @@ -106,6 +106,8 @@ class Token extends React.Component json = Utils.serializeRegisteredObjects(@props.item) event.dataTransfer.setData('nylas-token-item', json) event.dataTransfer.setData('text/plain', @props.item.toString()) + event.dataTransfer.dropEffect = "move" + event.dataTransfer.effectAllowed = "move" @setState(dragging: true) _onDragEnd: (event) =>