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

[BUG] HTML body object's cursor style overridden with !important after dragging elements #178

Open
rizwanulrudra opened this issue Jan 13, 2021 · 0 comments

Comments

@rizwanulrudra
Copy link

rizwanulrudra commented Jan 13, 2021

I am using vue-smooth-dnd in a kanban board component. I have added the following css to change the cursor's style while dragging:
card { cursor: all-scroll; }

I noticed while dragging and scrolling an element, it's basically injecting this style to the <head />:
<style type="text/css">body *{cursor:all-scroll !important;}</style>

This should disappear after dropping the element, but no, it doesn't.

At one certain point, if I move the card elements pretty random and fast, the cursor's default style changes according to the injected stylesheet (because it has !important with the css) and it doesn't change until I hard refresh the page. It's pretty annoying to the user. I tried dynamically removing that specific stylesheet from the DOM but it didn't work at all. Is there any solution for this bug? @kutlugsahin

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

1 participant