[bugfix]: prevent default (#334)

* [bugfix]: prevent default on rating
This commit is contained in:
Kendall Garner 2023-10-29 04:10:52 +00:00 committed by GitHub
parent 4ec981df83
commit 9d780e0342
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,6 +34,10 @@ export const Rating = ({ onChange, ...props }: RatingProps) => {
onChange={(e) => {
debouncedOnChange(e);
}}
onClick={(e) => {
e.preventDefault();
e.stopPropagation();
}}
/>
);
};