xdan / autocomplete

jQuery autocomplete plugin like Google autocomplete

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Transparency in Internet Explorer

PeteCozens opened this issue · comments

in v1.2.6 the code on lines 1006-1010 attempts to set the background of the textbox to transparent. This value does not appear to be supported in IE and results in the background getting set to white. This is fine if your control is hosted on a white background, but looks terrible on any other color.

try{
	$input[0].style.setProperty('background', 'transparent', 'important');
} catch(e) {
	$input.css('background','transparent')
}

Commenting out these lines of code appears to resolve the issue and works fine in IE and Chrome.