Cmb2: In Gutenberg Editor, the cursor jumps to the start of the block every time when auto saving

Created on 23 Dec 2018  路  2Comments  路  Source: CMB2/CMB2

Expected Behavior:

When a post is autosaved, the cursor should not dislocate

Actual Behavior:

The cursor jumps to the start of the block every time when auto saving

Steps to reproduce :

  1. Activate CMB2 and use Gutenberg editor to create a post.
  2. Start wring into a block and wait to it to be auto saved.
  3. Watch the cursor as it jumps to the start of the block.

What is causing this?

Possibly #1190 introduced this issue. It took me a few hours to debug the issue and finally caught it red handed on cmb2.js#L130 馃槃. When you comment out that line, there is no such issue.
PS: keep SCRIPT_DEBUG enabled

Debug Info

WP 5.0.2
CMB2 2.5.1

help wanted

Most helpful comment

Just tested with the updated version 2.6.0 and can confirm there is no longer an issue with auto-saving, great work.

All 2 comments

Just tested with the updated version 2.6.0 and can confirm there is no longer an issue with auto-saving, great work.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stabilimenta picture stabilimenta  路  8Comments

paaljoachim picture paaljoachim  路  8Comments

mathetos picture mathetos  路  8Comments

tw2113 picture tw2113  路  8Comments

GaryJones picture GaryJones  路  3Comments