# 移动端视图中的重新分配功能无法在用户搜索框中输入文字

**URL:** <https://meta.discourse.org/t/re-assign-in-mobile-view-does-not-allow-typing-in-search-field-for-users/400986>\
**Category:** Bug\
**Tags:** mobile, assign\
**Created:** [2026年四月19日 07:15 UTC](https://meta.discourse.org/t/re-assign-in-mobile-view-does-not-allow-typing-in-search-field-for-users/400986 "2026-04-19T07:15:39Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [2026年五月13日 10:43 UTC](https://meta.discourse.org/t/re-assign-in-mobile-view-does-not-allow-typing-in-search-field-for-users/400986/12 "2026-05-13T10:43:49Z")

</div>

我们也遇到了同样的问题，不是在重新分配时，而是在移动端分配时。一旦打开模态框就会崩溃。

```plaintext
Uncaught (in promise) TypeError: 无法访问属性 "contains"，t.targetElement 未定义
    t select-kit-collection.gjs:20
    c select-kit-collection.gjs:19
    installModifier modifier-manager.ts:52
    Ember 76
select-kit-collection.gjs:20:7
    t select-kit-collection.gjs:20
    some self-hosted:125
    c select-kit-collection.gjs:19
    installModifier modifier-manager.ts:52
    Ember

```

将 ` locked.targetElement.contains(element)` 改为 ` locked?.targetElement.contains(element)` 可以消除错误，但仍然无法输入。

---

_[View the full topic](https://meta.discourse.org/t/re-assign-in-mobile-view-does-not-allow-typing-in-search-field-for-users/400986)._
