【问题标题】:angucomplete-alt unable to type in textboxangucomplete-alt 无法在文本框中输入
【发布时间】:2015-07-23 19:02:42
【问题描述】:

这里的问题很简单 - 但似乎找不到答案。我已将 angucomplete-alt 添加到我的项目中-我相信我已正确添加了所有内容-意思是注册它并在页面加载时使 js 文件可用。但是由于某种原因,当我单击输入并开始输入时 - 没有任何反应。我无法输入文本框/输入。下面是我的控件代码。 - 我仔细检查后端的连接方式。 - 提前致谢。

这个确切的代码在另一个项目中工作 - 配置不同 - 但控件的标记是相同的

<angucomplete-alt id="searchGroupsAutoComplete"
                                          placeholder="{{searchPlaceholder}}"
                                          pause="400"
                                          text-searching="{{searchingText}}"
                                          selected-object="selectedAnObjectFn"
                                          remote-url="/api/search/SearchByQueryStrings"
                                          remote-url-request-formatter="formatSearchDataFn"
                                          remote-url-response-formatter="formatReturnDataFn"
                                          remote-url-data-field="Content"
                                          title-field="Name"
                                          description-field="EntityType"
                                          image-field="ThumbnailUrl"
                                          minlength="1" />

【问题讨论】:

  • 我对此没有解决方案 - 但在此页面上我也在使用 ng-nestable - 这也不是很好用(尝试使用按钮从列表中删除项目 - 不喜欢 / 或允许 ng-click) 但如果我把它拿出来。 ng-model="mdl" 并放入一个 ng-repeat="item in mdl" - 然后我的 angucomplete 中的那个文本框可以工作 - 但是你必须在 ng-nestable 旁边有 ng-model 所以 ng-repeat 不会工作
  • 几乎像 - (可能是)被设置为禁用?

标签: angularjs angularjs-directive


【解决方案1】:
Remove maxlength="{{maxlength}}" of INPUT tag in $templateCache.put(TEMPLATE_URL,..... (angucomplete-alt.js)

所以它起作用了,但我不知道为什么。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-09-13
    • 2015-03-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-02-08
    相关资源
    最近更新 更多