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] Drag error: Cannot read properties of null (reading 'left') #458

Open
ofalvai opened this issue Jun 27, 2023 · 2 comments
Open

[BUG] Drag error: Cannot read properties of null (reading 'left') #458

ofalvai opened this issue Jun 27, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@ofalvai
Copy link

ofalvai commented Jun 27, 2023

Describe the bug

I have a document where drag reordering is not working for some reason (it always works in other docs at the same time). I'm not sure what is so unique about this doc, but when I open the dev console, I see this stacktrace:

Uncaught TypeError: Cannot read properties of null (reading 'left')
    at DragAndDropState.calculateLeftPadding (plugin:obsidian-outliner:1341:56)
    at new DragAndDropState (plugin:obsidian-outliner:1257:14)
    at DragAndDrop.startDragging (plugin:obsidian-outliner:1151:23)
    at DragAndDrop.handleMouseMove (plugin:obsidian-outliner:1068:22)

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: Desktop
  • Obsidian Version: 1.3.7
  • Plugin Version: 4.7.1

Additional context
Add any other context about the problem here.

@ofalvai ofalvai added the bug Something isn't working label Jun 27, 2023
@lethefrost
Copy link

Same for me here, drag & drop not working at all.

  • OS: macOS
  • Obsidian Version: 1.4.1
  • Plugin Version: 4.7.1
Uncaught TypeError: Cannot read properties of null (reading 'left')
    at DragAndDropState.calculateLeftPadding (DragAndDrop.ts:434:52)
    at new DragAndDropState (DragAndDrop.ts:327:10)
    at DragAndDrop.startDragging (DragAndDrop.ts:161:19)
    at DragAndDrop.handleMouseMove (DragAndDrop.ts:131:12)

and there's also vertical line error from time to time

Uncaught TypeError: Cannot read properties of null (reading 'left')
    at VerticalLinesPluginValue.recursive (VerticalLines.ts:173:35)
    at VerticalLinesPluginValue.calculate (VerticalLines.ts:110:16)

@Jaydak54
Copy link

Jaydak54 commented Dec 21, 2023

Check my comment in Issue 489

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

3 participants