cajames / kirby-editor-gallery-block

A gallery block for the Kirby Editor
MIT License
61 stars 5 forks source link

fix: only return menu items after block rendered #14

Closed cajames closed 4 years ago

cajames commented 4 years ago

Sometimes if a user hovers over the block menu on the left, while the component has not yet finished rendering, an error might be thrown, as shown in #13.

This PR ensures that parts of components are not referenced before they are rendered.

Closes #13

cajames commented 4 years ago

Hey @mynameisfreedom, could you please test this branch build and see if this solves the menu error?