1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 02:49:56 +02:00

fix renderEditor to not mutate plugins when reversing (#1326)

This commit is contained in:
Ian Storm Taylor
2017-10-28 16:06:56 -07:00
committed by GitHub
parent 5afcdd3c97
commit 0075dddb36

View File

@@ -127,7 +127,7 @@ class Stack extends Record(DEFAULTS) {
*/
render(property, props, ...args) {
const plugins = this.getPluginsWith(property).reverse()
const plugins = this.getPluginsWith(property).slice().reverse()
let { children = null } = props
for (const plugin of plugins) {