Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to change cursor when onMove returns false #2452

Unanswered
hobbeschild asked this question in Q&A
Discussion options

I have a Sortable with an onMove method that returns false in some circumstances. How can I change the cursor to "not-allowed" when it returns false, so it is clear to the user that they are not allowed to drop the item there. This is what I have tried...

https://codepen.io/hobbeschild/pen/wBMoqLL

I can find lots of answers explaining how to change the cursor when dragging, but they are permanent CSS solutions, not dynamic according to the onMove event.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /