Merge pull request #1761 from SergioCrisostomo/fix-half-rates

Fix rating when init value is decimal
This commit is contained in:
Aresn 2017-09-01 09:58:33 +08:00 committed by GitHub
commit 9b353c4069

View file

@ -47,7 +47,7 @@
prefixCls: prefixCls, prefixCls: prefixCls,
hoverIndex: -1, hoverIndex: -1,
isHover: false, isHover: false,
isHalf: false, isHalf: this.allowHalf && this.value % 1 == 0.5,
currentValue: this.value currentValue: this.value
}; };
}, },