Skip to content

Commit

Permalink
Also initialize lazy loading when render is called directly (e.g. whe…
Browse files Browse the repository at this point in the history
…n the toolbar is a submenu)
  • Loading branch information
flack committed Oct 10, 2019
1 parent ee0f974 commit 139edb2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/midcom/helper/toolbar/node.php
Expand Up @@ -32,6 +32,12 @@ protected function _check_index($index, $raise_error = true)
return parent::_check_index($index, $raise_error);
}

public function render() : string
{
$this->add_commands();
return parent::render();
}

public function is_rendered() : bool
{
$this->add_commands();
Expand Down

0 comments on commit 139edb2

Please sign in to comment.