Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: appendCallback hook is deprecated #241

Open
sarabourdon-rheo opened this issue Mar 8, 2024 · 0 comments
Open

Warning: appendCallback hook is deprecated #241

sarabourdon-rheo opened this issue Mar 8, 2024 · 0 comments

Comments

@sarabourdon-rheo
Copy link

sarabourdon-rheo commented Mar 8, 2024

Hi,
When I add an image block by clicking "+" and selecting image, I get a warning:

`appendCallback` hook is deprecated and will be removed in the next major release. Use `rendered` hook instead

Indeed appendCallback is used here:

image/src/index.js

Lines 256 to 265 in 25d46cd

/**
* Fires after clicks on the Toolbox Image Icon
* Initiates click on the Select File button
*
* @public
*/
appendCallback() {
this.ui.nodes.fileButton.click();
}

You can reproduce it on Editorjs documentation demo: https://editorjs.io/.
It's not a big deal, just a warning in console, but I didn't see any issues already open so I thought I'd mention it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant