primefaces / primeui

Rich set of javascript-css only widgets
http://www.primefaces.org/primeui
283 stars 125 forks source link

Fixed initialization issue in autocomplete widget #221

Closed ritchiecarroll closed 8 years ago

ritchiecarroll commented 8 years ago

Fix for puiautocomplete initialization error #220

ritchiecarroll commented 8 years ago

Example of error:

capture
cagataycivici commented 8 years ago

Doesn't the patch remove '

'? from panel

ritchiecarroll commented 8 years ago

Panel was just added, so innerHTML should be blank at that point in the process anyway, so the "this.panel.html('');" line could safely be dropped. I just copied those three lines of initialization code from further down to make sure "items" property exists because call to keydown event.

ritchiecarroll commented 8 years ago

Closing to re-add pull request against new branch - also working on fiddle to reproduce...

StephenCWills commented 8 years ago

While working on the jsfiddle to reproduce this issue, we discovered the page was missing jquery-ui.css. Adding the stylesheet to the page fixed the issue so this was a false alarm.