on 12-07-2016 1:49 PM
Hi,
I have a sap.m.input control with suggestion, the problem is that chrome also show a "autocomplete" based on the history.
This is very annoying.
I've been able to work around this partially by adding in the onAfterRendering:
$("#idPurchase--inpItem-inner").attr("autocomplete","off");
but the control gets disabled when a selection has made.
Via a button the control can be enabled again and after enabling the autocomplete attribute has gone and cannot be set anymore.
Control :
<Input id="inpItem" enabled="{=${modItemInfo>/ItemCode} === undefined}"
type="Text" placeholder="Enter Name or Code ..." showSuggestion="true"
showValueHelp="true" valueHelpRequest="handleValueHelp"
suggestionItems="{modItemInfo>/data}" suggest="handleItemInfoSuggest"
suggestionItemSelected="handleItemChange" startSuggestion="3"
maxSuggestionWidth="1000px" width="40em">
<suggestionItems>
<core:ListItem text="{modItemInfo>ItemName}"
additionalText="{modItemInfo>ItemCode}">
</core:ListItem>
</suggestionItems>
</Input>
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.