Merge pull request #1761 from SergioCrisostomo/fix-half-rates
Fix rating when init value is decimal
This commit is contained in:
commit
9b353c4069
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@
|
|||
prefixCls: prefixCls,
|
||||
hoverIndex: -1,
|
||||
isHover: false,
|
||||
isHalf: false,
|
||||
isHalf: this.allowHalf && this.value % 1 == 0.5,
|
||||
currentValue: this.value
|
||||
};
|
||||
},
|
||||
|
@ -127,4 +127,4 @@
|
|||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
</script>
|
||||
|
|
Loading…
Add table
Reference in a new issue