mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-02 03:32:36 +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) {
|
render(property, props, ...args) {
|
||||||
const plugins = this.getPluginsWith(property).reverse()
|
const plugins = this.getPluginsWith(property).slice().reverse()
|
||||||
let { children = null } = props
|
let { children = null } = props
|
||||||
|
|
||||||
for (const plugin of plugins) {
|
for (const plugin of plugins) {
|
||||||
|
Reference in New Issue
Block a user