prosemirror-view
Advanced tools
Comparing version
@@ -0,1 +1,7 @@ | ||
## 1.17.6 (2021-02-11) | ||
### Bug fixes | ||
Fix an issue where using the vertical arrow keys after select-all didn't update the selection. | ||
## 1.17.5 (2021-02-05) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-view", | ||
"version": "1.17.5", | ||
"version": "1.17.6", | ||
"description": "ProseMirror's view component", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -1,2 +0,2 @@ | ||
import {Selection, NodeSelection, TextSelection} from "prosemirror-state" | ||
import {Selection, NodeSelection, TextSelection, AllSelection} from "prosemirror-state" | ||
import browser from "./browser" | ||
@@ -188,4 +188,5 @@ import {domIndex, selectionCollapsed} from "./dom" | ||
if (!$from.parent.inlineContent) { | ||
let beyond = Selection.findFrom(dir < 0 ? $from : $to, dir) | ||
return beyond ? apply(view, beyond) : true | ||
let side = dir < 0 ? $from : $to | ||
let beyond = sel instanceof AllSelection ? Selection.near(side, dir) : Selection.findFrom(side, dir) | ||
return beyond ? apply(view, beyond) : false | ||
} | ||
@@ -192,0 +193,0 @@ return false |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1501847
0.06%14026
0.02%