Check for mismatched selection in Transaction.setSelection
Check for mismatched selection in Transaction.setSelection

FIX: `Transaction.setSelection` now immediately checks whether the given selection points into the proper document, rather than silently accepting an invalid selection.

ProseMirror/prosemirror-state