mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-22 06:53:25 +02:00
Use Node.forEachDescendant in Node.getKeys
This commit is contained in:
@@ -29,7 +29,7 @@ const Node = {
|
||||
getKeys() {
|
||||
const keys = []
|
||||
|
||||
this.filterDescendants(desc => {
|
||||
this.forEachDescendant(desc => {
|
||||
keys.push(desc.key)
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user