Users report a bug where searching for the “Day” in the Birthday selector on Mac doesn’t work when pressing Enter, despite the search bar appearing. Chaboi_3000 repros it across Chrome, Firefox, and Safari on Mac—even in incognito mode without extensions. dax initially couldn’t reproduce on Windows10, suggesting it may be macOS-specific. Chaboi_3000 asks dax to test on Mac, but dax lacks a Mac and defers testing to colleagues. Later, justin confirms the bug on Firefox for Mac, theorizing it stems from select-kit’s event handling—specifically, confusion between string and number comparisons when Enter is pressed in the search box. Arrow-key selection works fine. justin notes the issue doesn’t occur on sites using chat integration (also select-kit-based), suggesting a context-specific flaw. j.jaffeux confirms a fix is underway via a commit to discourse-cakeday, tied to an upcoming select-kit update.
I can repro this on Firefox for Mac. I’m guessing it has to do with the order of the event when Enter is hit. When you use arrow keys to select a date, it updates just fine when pressing Enter. But in the search box, it closes the window, probably assuming that the same number is selected as prior.
I tried this on my personal site using the chat integration plugin (which also uses select-kit), and I was not able to reproduce. I had a chat with @j.jaffeux, and this has to do with the current implementation of select-kit getting confused comparing a string to a number. He’s working on a new version of select-kit, so this should be fixed when that gets rolled out.