mirror of
https://github.com/Xevion/xevion.dev.git
synced 2025-12-10 20:09:11 -06:00
Fixed mobile not toggling on/off properly
- Chrome & Firefox Mobile issue - Despite not having hover in JS, CSS :hover selector was activating - Tiny, inactive mobile-only button was clickable - Fixed duplicate key issue in icon links
This commit is contained in:
@@ -6,14 +6,6 @@ export function classNames(...classes: (string | null | undefined)[]) {
|
||||
return classes.filter(Boolean).join(" ");
|
||||
}
|
||||
|
||||
/**
|
||||
* A handler that simply calls the `stopPropagation` method on an event.
|
||||
* @param event The event to prevent propagation on.
|
||||
*/
|
||||
export const stopPropagation = (event: Event) => {
|
||||
event.stopPropagation();
|
||||
};
|
||||
|
||||
const isClient = (): boolean => {
|
||||
return typeof window !== "undefined";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user