Binding a decimal value to the ngModel of a rating component will cause a star to be added to the component when the mouse leaves the component.
Plunker/StackBlitz that reproduces the issue:
1) Load stackblitz
2) Observe component correctly shows 2 stars for input value 2.1
3) Mouse over the component
4) Stop mouse over the component
5) Observe component now incorrectly shows 3 stars
Bug description:
Binding a decimal value to the ngModel of a rating component will cause a star to be added to the component when the mouse leaves the component.
Plunker/StackBlitz that reproduces the issue:
1) Load stackblitz 2) Observe component correctly shows 2 stars for input value 2.1 3) Mouse over the component 4) Stop mouse over the component 5) Observe component now incorrectly shows 3 stars
https://stackblitz.com/edit/angular-hj4tnx
Versions of ngx-bootstrap, Angular, and Bootstrap:
ngx-bootstrap: "^3.3.0",
Angular: "^7.2.5"
Bootstrap: "^4.2.1"
Build system: Angular CLI, System.js, webpack, starter seed:
Angular CLI