# 在移动设备上点击搜索按钮时，键盘无法自动关闭

**URL:** <https://meta.discourse.org/t/cant-auto-close-keyboard-when-submit-search-button-on-mobile-device/287217>\
**Category:** Support\
**Tags:** mobile, search\
**Created:** [2023年十二月1日 18:05 UTC](https://meta.discourse.org/t/cant-auto-close-keyboard-when-submit-search-button-on-mobile-device/287217 "2023-12-01T18:05:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thaidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thaidb/32/68488_2.png) [@thaidb](https://meta.discourse.org/u/thaidb)\
**Post date:** [2023年十二月1日 18:05 UTC](https://meta.discourse.org/t/cant-auto-close-keyboard-when-submit-search-button-on-mobile-device/287217/1 "2023-12-01T18:05:44Z")

</div>

移动设备上的搜索按钮提交时无法自动关闭键盘

---

<div class="post-metadata">

**Author:** ![isaac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/isaac/32/235758_2.png) [@isaac](https://meta.discourse.org/u/isaac)\
**Post date:** [2023年十二月1日 19:47 UTC](https://meta.discourse.org/t/cant-auto-close-keyboard-when-submit-search-button-on-mobile-device/287217/2 "2023-12-01T19:47:57Z")

</div>

虽然我确实看到您用作示例的论坛中的键盘会自动关闭，但不确定这是否一直是默认行为

查看其他几个论坛

- [Search results for '' - Ember.JS](https://discuss.emberjs.com/search)
- [https://forums.cfl.ca/](https://forums.cfl.ca/)
- [https://forums.sketchup.com/](https://forums.sketchup.com/)

它们都与 meta 具有相同的行为。即使搜索输入为空，键盘也会保持打开状态。
