-
Notifications
You must be signed in to change notification settings - Fork 52
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
[BUG] DropList DragFeedback item's display is not set to "none" #144
Comments
I don't see what is a bug here sorry. |
Ah yes, that is the correct functionality. However, when I ran the code in my environment, the extra feedback item was displayed by default. The second image (titled "Hovering item over DropList") shows the problem: two feedback items are visible at the same time. (the Demo I linked has the correct functionality) |
Weird. I don't have any issues on my projects. Was your local environment a blank or existing project? |
Here is a Demo of the problem (when dragging from top list to bottom list): https://codesandbox.io/s/dreamy-darwin-vz4qnx?file=/src/components/MyComponent.vue. Hopefully that helps. |
Thanks! :) I've reopened the issue. |
Hey, any updates on this issue? |
-- Hello, I believe I found a bug, but I'm not 100% sure I'm not just doing something incorrectly. Hope this is helpful. --
Using [email protected], @vue/cli 5.0.8, [email protected], [email protected], and [email protected]
Was testing code from the following Demo: https://codesandbox.io/s/droplist-ozs8b?file=/src/App.vue (EDIT: the Demo shows the correct code. However, the code was not correct in my environment (detailed above))
Upon dragging item from the left list, the right list (drop-list) displays the DragFeedback item (class="DragFeedback __feedback") at the bottom of the DropList (see images).
Dragging item from left:
Hovering item over DropList:
After investigating the source code of the demo (linked above), it seems that "[email protected]" sets "display: none" in the style of the DragFeedback element, such that the extra feedback item does not display at the bottom of the list:
Solution: I went into the source code of [email protected] and in the if statement where the DragFeedback element is created and pushed into defaultArr I added
style: 'display: none',
to the code. This seemingly solved the problem.The text was updated successfully, but these errors were encountered: