vslinko / obsidian-zoom

MIT License
220 stars 14 forks source link

[BUG] Disabling the plugin causes an error #62

Closed pjeby closed 1 year ago

pjeby commented 2 years ago

Describe the bug Disabling the plugin results in the following error, and a notification that the plugin could not be disabled:

Plugin failure: obsidian-zoom RangeError: Field is not present in this state
    at e.field (app.js:1:349660)
    at KeepOnlyZoomedContentVisible.calculateHiddenContentRanges (eval at <anonymous> (app.js:1:1490278), <anonymous>:759:38)
    at ZoomFeature.calculateHiddenContentRanges (eval at <anonymous> (app.js:1:1490278), <anonymous>:818:50)
    at Array.DetectRangeBeforeVisibleRangeChanged.detectVisibleContentBoundariesViolation (eval at <anonymous> (app.js:1:1490278), <anonymous>:110:68)
    at app.js:1:347742
    at Lr (app.js:1:347900)
    at e.update (app.js:1:349809)
    at e.dispatch (app.js:1:485144)
    at e.updateOptions (app.js:1:1275115)
    at t.updateOptions (app.js:1:1606405)

To Reproduce Steps to reproduce the behavior:

  1. In the sandbox vault, turn off safe mode and install the plugin
  2. Enable the plugin
  3. Disable the plugin

Expected behavior Plugin should disable without error.

Desktop (please complete the following information):

FeralFlora commented 2 years ago

I reproduced this issue.

vslinko commented 1 year ago

It seems to have been fixed in some version.