kopia lustrzana https://github.com/shoelace-style/shoelace
Improve rating selection
rodzic
27f2f0d769
commit
bfe67e5b88
|
|
@ -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) {
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue