Improve rating selection

pull/130/head
Cory LaViska 2020-07-20 16:22:32 -04:00
rodzic 27f2f0d769
commit bfe67e5b88
1 zmienionych plików z 2 dodań i 6 usunięć

Wyświetl plik

@ -95,12 +95,8 @@ export class Rating {
const newValue = this.getValueFromMousePosition(event);
if (newValue === this.value) {
this.value = 0;
this.isHovering = false;
} else {
this.value = newValue;
}
this.value = newValue === this.value ? 0 : newValue;
this.isHovering = false;
}
handleKeyDown(event: KeyboardEvent) {