telerik / kendo-angular

Issue tracker - Kendo UI for Angular
http://www.telerik.com/kendo-angular-ui/
Other
463 stars 213 forks source link

[DateInputs] Updating `enableMouseWheel` property value dynamically is not respected #4306

Open mbechev opened 1 month ago

mbechev commented 1 month ago

Describe the bug When the enableMouseWheel boolean value is updated at runtime (on a button click for example), the new value is not respected.

To Reproduce Click the button to change the value of the enableMouseWheel property: https://stackblitz.com/edit/angular-pwqwkq-hsqfn1

The Date value must not be updated on the mouse wheel when the property is set to false.

The following condition in the ngOnChanges hook, must be revised to ensure that all other properties that can be dynamically changed should meet the condition:

if (changes['format'] || changes['placeholder']{...}

In this case:

if (changes['format'] || changes['placeholder' || changes['enableMouseWheel' ]{...}

It is reproduced in all date input components from the suite.

Reported in private support thread: 1651891