I'm running into a problem where a clientside add-entry attempt on an empty AutoCompleteBox is growing vertically, breaking my design. Investigating the DOM indicates that the input, with a class of "racEmptyMessage", remains and is overflowing the height.
Clicking into the AutoCompleteBox to give it focus, then clicking away, resolves the design break.
Here's the code that I'm using to add the entry, pulled from the documentation:
function
CreateRABEntry(txt, val)
{
var
rab = $find(
"<%= AutoCompleteBox1.ClientID %>"
);
var
newEntry = rab.createEntry(txt, val);
var
entries = rab.get_entries();
entries.add(newEntry);
}
What am I doing wrong here?