# Mac 上的生日日期搜索无法工作

**URL:** <https://meta.discourse.org/t/birthday-date-search-not-working-on-mac/129189>\
**Category:** Bug\
**Created:** [2019年九月21日 08:23 UTC](https://meta.discourse.org/t/birthday-date-search-not-working-on-mac/129189 "2019-09-21T08:23:17Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chaboi_3000/32/163015_2.png) [@Chaboi\_3000](https://meta.discourse.org/u/Chaboi_3000)\
**Post date:** [2019年九月21日 08:23 UTC](https://meta.discourse.org/t/birthday-date-search-not-working-on-mac/129189/1 "2019-09-21T08:23:17Z")

</div>

当我尝试搜索生日选择器中的“日”部分时，搜索栏会出现，但按下 Enter 键时无效。

复现步骤：

1. 进入用户偏好设置
2. 进入出生日期部分
3. 选择“日”部分并输入一个数字（例如：5）
4. 按下 Enter 键
5. 本应更新，但实际未更新。这可能是功能损坏，或者是开发人员不小心添加了该功能。

浏览器：在 Chrome、Firefox 和 Safari 上均“复现”  
电脑：Mac

 ![](https://global.discourse-cdn.com/meta/original/3X/b/b/bbdfc08e76eafabe5c27ba6557cc61d32c8cee81.gif)

---

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [2019年九月21日 09:56 UTC](https://meta.discourse.org/t/birthday-date-search-not-working-on-mac/129189/2 "2019-09-21T09:56:43Z")

</div>

这个 bug 出现在 Meta 上吗？我刚刚成功修改了你的生日。

你有浏览器扩展吗？如果有，能否尝试在无痕窗口（不加载任何扩展）中复现该问题？

---

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chaboi_3000/32/163015_2.png) [@Chaboi\_3000](https://meta.discourse.org/u/Chaboi_3000)\
**Post date:** [2019年九月21日 11:23 UTC](https://meta.discourse.org/t/birthday-date-search-not-working-on-mac/129189/3 "2019-09-21T11:23:11Z")

</div>

Meta 中也有这个问题。你输入数字后按回车键了吗？因为我在无痕浏览（无扩展）模式下也能复现。

---

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [2019年九月21日 11:31 UTC](https://meta.discourse.org/t/birthday-date-search-not-working-on-mac/129189/4 "2019-09-21T11:31:07Z")

</div>

> [@Chaboi\_3000](#):
>
> 你在输入数字后按了回车键吗？

是的，我是在 Windows 10 上操作的，也许这是仅在 macOS 上才会出现的问题。

---

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chaboi_3000/32/163015_2.png) [@Chaboi\_3000](https://meta.discourse.org/u/Chaboi_3000)\
**Post date:** [2019年九月21日 22:15 UTC](https://meta.discourse.org/t/birthday-date-search-not-working-on-mac/129189/5 "2019-09-21T22:15:19Z")

</div>

> [@dax](#):
>
> 也许这是仅在 macOS 上发生的问题。

很可能就是这样。你能在你的 Mac 上尝试复现吗？我想知道这是否只是我笔记本电脑的问题。

---

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [2019年九月22日 08:43 UTC](https://meta.discourse.org/t/birthday-date-search-not-working-on-mac/129189/6 "2019-09-22T08:43:48Z")

</div>

> [@Chaboi\_3000](#):
>
> 你能在你的 Mac 上尝试复现吗？

我没有 Mac。你应该等我的同事之一来测试（可能是在下周的年度会议之后）。

---

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chaboi_3000/32/163015_2.png) [@Chaboi\_3000](https://meta.discourse.org/u/Chaboi_3000)\
**Post date:** [2019年十月6日 01:22 UTC](https://meta.discourse.org/t/birthday-date-search-not-working-on-mac/129189/8 "2019-10-06T01:22:36Z")

</div>

@dax 会议有什么最新消息吗？

---

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [2019年十月6日 09:49 UTC](https://meta.discourse.org/t/birthday-date-search-not-working-on-mac/129189/10 "2019-10-06T09:49:53Z")

</div>

不，我们下周初会在 Mac 上尝试复现该问题。

---

<div class="post-metadata">

**Author:** ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)\
**Post date:** [2019年十月7日 14:40 UTC](https://meta.discourse.org/t/birthday-date-search-not-working-on-mac/129189/13 "2019-10-07T14:40:00Z")

</div>

我可以在 Mac 版 Firefox 上复现此问题。我猜测这与按下 Enter 键时事件的顺序有关。当你使用方向键选择日期时，按下 Enter 键后更新正常。但在搜索框中，它会关闭窗口，可能是因为它假设选中的数字与之前相同。

我在个人网站上使用聊天集成插件（该插件也使用 select-kit）进行了测试，但无法复现该问题。我与 @j.jaffeux 进行了交流，这涉及到当前 select-kit 实现中字符串与数字比较时产生的混淆。他正在开发 select-kit 的新版本，因此该问题将在新版本发布后得到修复。

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [2019年十月7日 21:16 UTC](https://meta.discourse.org/t/birthday-date-search-not-working-on-mac/129189/15 "2019-10-07T21:16:47Z")

</div>

这应该通过以下方式修复：

> <https://github.com/discourse/discourse-cakeday/commit/556fa89a65fa728f25d3b3fd2a6cfb46c083afd9>
>
> This bug was preventing search in combo-box.

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [2019年十月7日 21:16 UTC](https://meta.discourse.org/t/birthday-date-search-not-working-on-mac/129189/16 "2019-10-07T21:16:55Z")

</div>


