diff options
author | Adam Wagner <wbadam@users.noreply.github.com> | 2017-05-11 12:44:36 +0300 |
---|---|---|
committer | Pekka Hyvönen <pekka@vaadin.com> | 2017-05-11 12:44:36 +0300 |
commit | a4ffc1e1597e2ce3a3ac2977458c8df25e112c88 (patch) | |
tree | fe10ad35266a976f5d06246ae8b09f55c91038c3 /client | |
parent | 7b1e48f4698971179d773ee6d9ae413ac8dccce1 (diff) | |
download | vaadin-framework-a4ffc1e1597e2ce3a3ac2977458c8df25e112c88.tar.gz vaadin-framework-a4ffc1e1597e2ce3a3ac2977458c8df25e112c88.zip |
Generate style name on every dragenter (#9292) (#9293)
Fixes #9292
Diffstat (limited to 'client')
-rw-r--r-- | client/src/main/java/com/vaadin/client/extensions/DropTargetExtensionConnector.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/client/src/main/java/com/vaadin/client/extensions/DropTargetExtensionConnector.java b/client/src/main/java/com/vaadin/client/extensions/DropTargetExtensionConnector.java index 7c9e9755b8..49592488de 100644 --- a/client/src/main/java/com/vaadin/client/extensions/DropTargetExtensionConnector.java +++ b/client/src/main/java/com/vaadin/client/extensions/DropTargetExtensionConnector.java @@ -145,11 +145,12 @@ public class DropTargetExtensionConnector extends AbstractExtensionConnector { */ protected void onDragEnter(Event event) { NativeEvent nativeEvent = (NativeEvent) event; - if (isDropAllowed(nativeEvent)) { - // Generate style name for drop target - styleDragCenter = dropTargetWidget.getStylePrimaryName() - + STYLE_SUFFIX_DRAG_CENTER; + // Generate style name for drop target + styleDragCenter = dropTargetWidget.getStylePrimaryName() + + STYLE_SUFFIX_DRAG_CENTER; + + if (isDropAllowed(nativeEvent)) { setTargetClassIndicator(event); setDropEffect(nativeEvent); |