diff --git a/src/components/ui/book-offline-button.tsx b/src/components/ui/book-offline-button.tsx index 1f799cc..393f26d 100644 --- a/src/components/ui/book-offline-button.tsx +++ b/src/components/ui/book-offline-button.tsx @@ -219,7 +219,9 @@ export function BookOfflineButton({ book, className }: BookOfflineButtonProps) { checkStatus(); }, [book.id, checkOfflineAvailability, downloadBook, getBookStatus, setBookStatus]); - const handleToggleOffline = async () => { + const handleToggleOffline = async (e: React.MouseEvent) => { + e.stopPropagation(); // EmpĂȘcher la propagation au parent + if (!("caches" in window)) { toast({ title: "Non supportĂ©",