Skip to content

Render submenu only when there are children to display - #13

Open
sniku wants to merge 1 commit into
jrief:masterfrom
teklager:master
Open

Render submenu only when there are children to display#13
sniku wants to merge 1 commit into
jrief:masterfrom
teklager:master

Conversation

@sniku

@sniku sniku commented Feb 20, 2022

Copy link
Copy Markdown

Previously the submenu was rendered when there were invisible children.
This patch renders menu element with invisible children the same way
as elements without any children.

Previously the submenu was rendered even when there were no children to
display. This was happening when manuelement had "hidden" children.
This patch renders the menu element with visible children the same way
as elements without any children.
@jrief

jrief commented Feb 21, 2022

Copy link
Copy Markdown
Owner

what I do not understand, if a child doesn't have any children, it should have is_leaf_node = True. If that's not the case, then the bug must be somewhere else.

With which version of django-CMS did you test this?

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

Successfully merging this pull request may close these issues.

2 participants