Skip to Content
avatar image
Former Member

sap.m.input with suggestions, problems with autocomplete


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:

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">
<core:ListItem text="{modItemInfo>ItemName}"

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers