Skip to content

Commit

Permalink
Call enableAjax() on lazy-loaded contents of WMenuItem
Browse files Browse the repository at this point in the history
  • Loading branch information
RockinRoel committed Sep 4, 2017
1 parent 07d6792 commit 374a90b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Wt/WMenuItem.C
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ void WMenuItem::enableAjax()
if (menu_->internalPathEnabled())
resetLearnedSlots();

if (contents_ && !contentsLoaded())
contents_->enableAjax();

WContainerWidget::enableAjax();
}

Expand Down

0 comments on commit 374a90b

Please sign in to comment.