Menu not expanding
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
When click on item, in left menu in Ultima theme, this is not expanding and submenu is not showing. The problem seems to be because of trigger [@children] not refresh after value it's changed. Issue appear when run downloaded Ultima with serve or build. Ultima menu expanding it's working in Demo Site for Ultima on internet. Ultima package version is 4.2.0 .
Issue at menu appear because an exception in Dashboard at p-schedule. After comment in dashboard.html p-schedule line, menu is expanding when click on item.
Exception at p-schedule :
ERROR TypeError: Cannot read property 'url' of undefined
at Function.JsonFeedEventSource.parse (eval at webpackJsonp.../../../../script-loader/addScript.js.module.exports (addScript.js:9), <anonymous>:16322:21)
at Object.parse (eval at webpackJsonp.../../../../script-loader/addScript.js.module.exports (addScript.js:9), <anonymous>:15993:35)
at constructor.addEventSource (eval at webpackJsonp.../../../../script-loader/addScript.js.module.exports (addScript.js:9), <anonymous>:13343:34)
at HTMLDivElement.eval (eval at webpackJsonp.../../../../script-loader/addScript.js.module.exports (addScript.js:9), <anonymous>:58:35)
at Function.each (eval at webpackJsonp.../../../../script-loader/addScript.js.module.exports (addScript.js:9), <anonymous>:362:19)
at jQuery.fn.init.each (eval at webpackJsonp.../../../../script-loader/addScript.js.module.exports (addScript.js:9), <anonymous>:157:17)
at jQuery.fn.init.$.fn.fullCalendar (eval at webpackJsonp.../../../../script-loader/addScript.js.module.exports (addScript.js:9), <anonymous>:35:7)
at Schedule.webpackJsonp.../../../../primeng/components/schedule/schedule.js.Schedule.initialize (schedule.js:212)
at Schedule.webpackJsonp.../../../../primeng/components/schedule/schedule.js.Schedule.ngAfterViewChecked (schedule.js:193)
at callProviderLifecycles (core.es5.js:11197)
at callElementProvidersLifecycles (core.es5.js:11169)
at callLifecycleHooksChildrenFirst (core.es5.js:11153)
at checkAndUpdateView (core.es5.js:12263)
at callViewAction (core.es5.js:12620)
at execComponentViewsAction (core.es5.js:12552)
View_DashboardDemo_0 @ DashboardDemo.html:271
Exception at p-schedule :
ERROR TypeError: Cannot read property 'url' of undefined
at Function.JsonFeedEventSource.parse (eval at webpackJsonp.../../../../script-loader/addScript.js.module.exports (addScript.js:9), <anonymous>:16322:21)
at Object.parse (eval at webpackJsonp.../../../../script-loader/addScript.js.module.exports (addScript.js:9), <anonymous>:15993:35)
at constructor.addEventSource (eval at webpackJsonp.../../../../script-loader/addScript.js.module.exports (addScript.js:9), <anonymous>:13343:34)
at HTMLDivElement.eval (eval at webpackJsonp.../../../../script-loader/addScript.js.module.exports (addScript.js:9), <anonymous>:58:35)
at Function.each (eval at webpackJsonp.../../../../script-loader/addScript.js.module.exports (addScript.js:9), <anonymous>:362:19)
at jQuery.fn.init.each (eval at webpackJsonp.../../../../script-loader/addScript.js.module.exports (addScript.js:9), <anonymous>:157:17)
at jQuery.fn.init.$.fn.fullCalendar (eval at webpackJsonp.../../../../script-loader/addScript.js.module.exports (addScript.js:9), <anonymous>:35:7)
at Schedule.webpackJsonp.../../../../primeng/components/schedule/schedule.js.Schedule.initialize (schedule.js:212)
at Schedule.webpackJsonp.../../../../primeng/components/schedule/schedule.js.Schedule.ngAfterViewChecked (schedule.js:193)
at callProviderLifecycles (core.es5.js:11197)
at callElementProvidersLifecycles (core.es5.js:11169)
at callLifecycleHooksChildrenFirst (core.es5.js:11153)
at checkAndUpdateView (core.es5.js:12263)
at callViewAction (core.es5.js:12620)
at execComponentViewsAction (core.es5.js:12552)
View_DashboardDemo_0 @ DashboardDemo.html:271
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
This is related to FullCalendar 3.5.0 incompatibility with p-schedule, more information at;
https://github.com/primefaces/primeng/issues/3813
You can either downgradge FullCalendar to 3.4 or remove it if you don't need it or wait for PrimeNG 4.2.0 which brings FullCalendar 3.5 support.
https://github.com/primefaces/primeng/issues/3813
You can either downgradge FullCalendar to 3.4 or remove it if you don't need it or wait for PrimeNG 4.2.0 which brings FullCalendar 3.5 support.
We purchased Ultima 4.2 and after an npm install, fullcalendar@3.5.1 is installed yet we are experiencing the same issue - left menu items will not open and this error in the console exactly 20 times:
Confirmed that commenting line 276 of dashboard.html does fix the menu issue, but obviously no calendar is displayed.
What is your recommendation?
Code: Select all
ERROR TypeError: Cannot read property 'url' of undefined
at Function.JsonFeedEventSource.parse (scripts.bundle.js:41854)
at Object.parse (scripts.bundle.js:41525)
at constructor.addEventSource (scripts.bundle.js:38875)
at HTMLDivElement.<anonymous> (scripts.bundle.js:25590)
at Function.each (scripts.bundle.js:363)
at jQuery.fn.init.each (scripts.bundle.js:158)
at jQuery.fn.init.$.fn.fullCalendar (scripts.bundle.js:25567)
at Schedule.webpackJsonp.../../../../primeng/components/schedule/schedule.js.Schedule.initialize (schedule.js:212)
at Schedule.webpackJsonp.../../../../primeng/components/schedule/schedule.js.Schedule.ngAfterViewChecked (schedule.js:193)
at callProviderLifecycles (core.es5.js:11205)
Code: Select all
<p-schedule [events]="events" defaultDate="2016-01-12"></p-schedule>
-
- Information
-
Who is online
Users browsing this forum: No registered users and 17 guests