Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling drag & drop is not working correctly #17

Closed
awulkan opened this issue Nov 20, 2017 · 5 comments
Closed

Disabling drag & drop is not working correctly #17

awulkan opened this issue Nov 20, 2017 · 5 comments

Comments

@awulkan
Copy link
Contributor

awulkan commented Nov 20, 2017

Items disappear under certain circumstances if you disable drag & drop and then drag them.

Steps to reproduce

  1. Go to this page: http://hejx.space/vddl-demo/#/nested
  2. Click the red 'disable' button.
  3. Select the text inside of an item and drag it.

Temporary solution
I managed to get around this by adding this class to my css:

.disable-drag {
  user-select: none;
  pointer-events: none; /* Not needed but prevents visual effect of dragging an item. */
}

And then adding

:class="{'disable-drag': disable}"

To my nested list like this
<vddl-draggable class="group-item" :class="{'disable-drag': disable}"
and this
<vddl-list class="group-body" :class="{'disable-drag': disable}"

@hejianxian
Copy link
Owner

What browser?

@awulkan
Copy link
Contributor Author

awulkan commented Nov 20, 2017

Chrome Version 62.0.3202.94 (Official Build) (64-bit).
Firefox Quantum 57.0

Probably all browsers.
Disable drag mode, then select all text and drag the items up and down.

@hejianxian
Copy link
Owner

Why the item can be dragged in the disable drag mode?

@awulkan
Copy link
Contributor Author

awulkan commented Nov 21, 2017

I don't know, I can take a look at it this week.

@awulkan
Copy link
Contributor Author

awulkan commented Oct 14, 2019

It works now.

@awulkan awulkan closed this as completed Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants