Video of the behavior is here https://imgur.com/a/XbJUHm8. It’s almost consistently reproducible, but sometimes it takes a few times to happen.
To reproduce: enter a long number like 123123 and hit enter (clear and repeat a few times till it occurs). Did not test if this also happens with “date” controls.
Using latest mobiscroll (v5.31.2), Angular v17.
Template code snippet:
<input mbsc-datepicker [(ngModel)]=“time” [controls]=“[‘time’]” [stepMinute]=“15”>
Hi @Geom
Could you please share a working example as well? I wasn’t able to reproduce the issue with the same configuration. Thank you!
Hello,
seems to be a problem when setting the displayTimezone and timezonePlugin options. I can reproduce the bug on a newly created standalone component. The momentTimezone set-up is as described in the docs:
import { Component } from "@angular/core";
import { MbscModule, momentTimezone } from "@mobiscroll/angular";
import * as moment from "moment-timezone";
import { FormsModule } from "@angular/forms";
momentTimezone.moment = moment;
@Component({
selector: "app-test",
standalone: true,
imports: [MbscModule, FormsModule],
template: `
<input
mbsc-datepicker
[(ngModel)]="start"
[controls]="['time']"
[stepMinute]="15"
[displayTimezone]="'Europe/Berlin'"
[timezonePlugin]="momentTimezone"
/>
`
})
export class TestComponent {
momentTimezone = momentTimezone;
start: any;
}
please let me know if you can reproduce it as well.
Hello @Geom
As my colleague mentioned in the other thread, this looks like a bug on our end. Your voice is already added to a bug report and I’ll let you know when it’s fixed.