angucomplete-alt unable to type in textbox

眉间皱痕 提交于 2019-12-11 10:51:53

问题


Simple problem here - but cant seem to find answer. I have added the angucomplete-alt to my project - I believe that I have added it all correctly - meaning, registering it and having the js file available when the page loads. But for some reason when I click on the input and start to type - nothing happens. I am unable to type in the textbox/input. below is my code for the control. - im double checking how things are wired up on the back end. - thanks in advance.

and this exact code works in another project - configured differently - but the markup for the control is the same

<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" />

回答1:


Remove maxlength="{{maxlength}}" of INPUT tag in $templateCache.put(TEMPLATE_URL,..... (angucomplete-alt.js)

so it worked, but I don't known why.



来源:https://stackoverflow.com/questions/30672962/angucomplete-alt-unable-to-type-in-textbox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!