codex-team / codex-team/editor.js

Tools API method render() called twice when toolbox action contains 'data' key object with key/values

Open
#2,380 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Tools API method render() called twice when toolbox action contains 'data' key object with key/values

**Steps to reproduce:**
* Create Tool with toolbox action which contains 'data' key object
* Click on this action to add block

**Expected behavior:**
* Tools API method render() call once like default toolbow action without 'data' key object

**Screenshots:**

![image](https://github.com/codex-team/editor.js/assets/100954021/35ffe51d-2e53-43d5-b3a0-65bd86bc03eb)

![image](https://github.com/codex-team/editor.js/assets/100954021/928bba1f-58d2-4158-9b35-5573553a32e1)

**Device, Browser, OS:** Computer, GChrome, Windows

**Editor.js version**: 2.26.5

**Plugins you use with their versions:** Only my custom plugin

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.