From 47d9113f3c898b6337e573d2e3e16270914195f9 Mon Sep 17 00:00:00 2001 From: Claudio Schaad Date: Thu, 27 Aug 2026 17:43:11 +0200 Subject: [PATCH] Make book/topic a required select instead of datalist input Datalist suggestions are unreliably supported on mobile/PWA browsers, so existing books/topics silently failed to show up when starting the app on a new device. Replaced with a native setBook(e.target.value)} - placeholder="Select or type a new one" - /> - - {booksQuery.data?.map((b) => + Book / topic + + {isAddingNewBook && ( + setNewBookTitle(e.target.value)} + placeholder="New book / topic name" + autoFocus + required + /> + )} + {booksQuery.isError && ( + Couldn't load existing books/topics — you can still add a new one. + )}