Posted 12 September 2019, 12:26 pm EST - Updated 3 October 2022, 10:25 am EST
Just noticed this error in console from the Angular bundle of the most recent release Wijmo 5.20192.624. I have verified this problem did not exist in the previous release 550.
Steps to Repeat:
- Find the calendar reference
- Set its value to null
- call dispose() method
Note: This only seems to be an issue of Angular2. I tried AngularJS which is good.
Code Sample:
import { Component, ViewChild, AfterViewInit } from '@angular/core';
import { WjCalendar } from 'wijmo/wijmo.angular2.input';
@Component({
selector: 'prototype-calendar',
template: `
<div class="ui container">
<wj-calendar #calendar>
</wj-calendar>
</div>
`
})
export class PrototypeCalendar implements AfterViewInit {
@ViewChild('calendar') calendar: WjCalendar;
ngAfterViewInit() {
console.log(this.calendar);
this.calendar.value = null;
setTimeout(() => {
this.calendar.dispose();
}, 5000);
}
}