Skip to content

Commit

Permalink
fix: fix reversed logic on background-color fallback.
Browse files Browse the repository at this point in the history
  • Loading branch information
3cp committed Apr 24, 2018
1 parent 70c0013 commit 8612e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dnd-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ export class DndService {
doc.body.appendChild(this._preview);
classes.add(doc.body, 'bcx-dnd-unselectable');

if (customised && _global.getComputedStyle(this._preview).backgroundColor === 'rgba(0, 0, 0, 0)') {
if (!customised && _global.getComputedStyle(this._preview).backgroundColor === 'rgba(0, 0, 0, 0)') {
this._preview.style.backgroundColor = 'white';
}

Expand Down

0 comments on commit 8612e9f

Please sign in to comment.