Fix rating when init value is decimal

This commit is contained in:
Sergio Crisostomo 2017-08-31 17:39:17 +02:00
parent 2baba209b7
commit b5e1430d3c

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
}; };
}, },
@ -127,4 +127,4 @@
} }
} }
}; };
</script> </script>