search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Cannot read properties of null (reading 'dontFocus')

Asked by Santiago Losada Borrajo
1 year ago.

We have encountered this error but we couldn't find out what is the reason why it doesn't show the error in the browser console. You suppose that we are missing some parameter but we don't know which one.

core.mjs:7739 ERROR TypeError: Cannot read properties of null (reading 'dontFocus')
at DayPilot.Navigator.select (daypilot-pro-angular.mjs:8429:43)
at DayPilot.Navigator.init (daypilot-pro-angular.mjs:8765:30)
at DayPilotNavigatorComponent.ngAfterViewInit (daypilot-pro-angular.mjs:16413:22)
at callHook (core.mjs:2551:1)
at callHooks (core.mjs:2520:1)
at executeInitAndCheckHooks (core.mjs:2471:1)
at refreshView (core.mjs:9651:1)
at refreshComponent (core.mjs:10777:1)
at refreshChildComponents (core.mjs:9376:1)
at refreshView (core.mjs:9630:1)

Answer posted by Dan Letecky [DayPilot]
1 year ago.

It looks like you are passing "null" as the "options" argument. Try removing it or use an empty object - "{}".

This problem should be fixed now in the latest sandbox build (2023.1.5527).

Comment posted by Dan Letecky [DayPilot]
1 year ago.

It looks like in Angular this happens if you use the "date" attribute of <DayPilotNavigator>.

Anyway, that should be fixed now so I recommend trying the latest sandbox build. Please let me know if the problem persists.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.