jquery / jquery/jquery-ui

Cannot read properties of undefined (reading 'mouse')

Open
#2,023 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Behavior shared with 1.12 Comp: Draggable
Dominant language
JavaScript
Stars
11.3k
Forks
5.2k
PR merge metrics
No merged PRs in 30d

Description

Hi everyone,
I use jquery-ui: 1.13.0 in particullary widget draggable.js, in Angular 12. Bu when I refresh the page I get this error:
Uncaught TypeError: Cannot read properties of undefined (reading 'mouse')
at draggable.js:39
at draggable.js:35
at draggable.js:37

Could anyone help me?
I could possibly also open a pull request because I added a code snippet that handles the error.

Thanks, I'm waiting for updates.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the refresh failure with jquery-ui 1.13.0, Angular 12, and draggable.js, then inspect the stack location around draggable.js:39 and the reported undefined mouse property. Done means identifying the cause and confirming that the error no longer occurs after a page refresh.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, javascript, jquery
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.