diff --git a/docs/src/pages/components/RatingBar.vue b/docs/src/pages/components/RatingBar.vue index e224579..cba269c 100644 --- a/docs/src/pages/components/RatingBar.vue +++ b/docs/src/pages/components/RatingBar.vue @@ -88,6 +88,11 @@ Receive the new rating Triggered when the rating changes his value by user interaction. + + hover + Receive the pointer rating + Triggered when the user points over a new rating. + diff --git a/src/components/mdRatingBar/mdRatingBar.vue b/src/components/mdRatingBar/mdRatingBar.vue index 5a2ff77..fb01438 100644 --- a/src/components/mdRatingBar/mdRatingBar.vue +++ b/src/components/mdRatingBar/mdRatingBar.vue @@ -131,6 +131,7 @@ hoverStars(evt) { if (!this.disabled) { this.rating = this.getIconIndex(evt.currentTarget); + this.$emit('hover', this.rating); } }, clickStars(evt) {