MenuModel "visible: false" not work on top menu

UI Components for Angular
Post Reply
Inetum
Posts: 2
Joined: 30 Apr 2021, 11:25

22 Nov 2021, 16:53

Hello,

On "primeng": "^11.3.0",
There is a problem with visible on top menu (on submenu item it works!)

...
ngOnInit() {
this.items = [
{
label: 'Videos',
icon: 'pi pi-fw pi-video',
items: [
[
{
label: 'Video 1',
items: [{ label: 'Video 1.1' }, { label: 'Video 1.2' }],
},
{
label: 'Video 2',
items: [
{ label: 'Video 2.1', visible: false },
{ label: 'Video 2.2' },
],
},
],
[
{
label: 'Video 3',
visible: false,
items: [{ label: 'Video 3.1' }, { label: 'Video 3.2' }],
},
{
label: 'Video 4',
items: [{ label: 'Video 4.1' }, { label: 'Video 4.2' }],
},
],
...

Video 2.1 is well not visible ==> OK
Video 3 complete menu should be not visible but it is still visible ==> KO

This is the stackBlitz url to reproduce the pb
https://stackblitz.com/edit/primeng-meg ... emo-xc6g98

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests