auto-complete icon indicating copy to clipboard operation
auto-complete copied to clipboard

open-on-focus is ignored on Internet Explorer

Open lstolowski opened this issue 7 years ago • 3 comments

It doesn't matter if option open-on-focus=false is set or not. ngui-auto-complete div still appears on Internet Explorer 11.

lstolowski avatar Oct 11 '17 10:10 lstolowski

It's not just Internet Explorer. It's doing this for me in Chrome as well. The @Input openOnFocus is being read as a string even though it's set to be a boolean. So, in the ngAfterViewInit function when it checks "if (this.openOnFocus)", this expression is always true because this.openOnFocus is a string of the word 'false'.

kevinp1335 avatar Nov 08 '17 15:11 kevinp1335

Hi Guys, Yes, this issue is reproducible in Chrome as well. Is there any workaround ?

danail-vasilev avatar Jan 10 '18 15:01 danail-vasilev

I've been testing this locally and may have a workaround. It seems to work if you use the one-way data binding syntax:

[open-on-focus]="false" // works open-on-focus="false" // doesn't work

Note that the similar close-on-focusout does not seem to work using this approach.

kevinhoelscher avatar Apr 11 '18 21:04 kevinhoelscher