mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 19:01:54 +02:00
fix renderEditor to not mutate plugins when reversing (#1326)
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user