[
https://issues.jboss.org/browse/RF-12481?page=com.atlassian.jira.plugin.s...
]
Morten Ludvigsen edited comment on RF-12481 at 9/11/12 4:26 AM:
----------------------------------------------------------------
in Autocomplete.js the destroy method, does not close the item list if open.
The quick fix is to call the this.__hide(event); method first in the destroy function.
{noformat}
/*
* Destructor
*/
destroy: function () {
//TODO: add all unbind
this.__hide(event);
this.items = null;
this.cache = null;
var itemsContainer = rf.getDomElement(this.id + ID.ITEMS);
$(itemsContainer).removeData();
rf.Event.unbind(itemsContainer.parentNode, this.namespace);
$super.destroy.call(this);
}
{noformat}
was (Author: mortenlud):
in Autocomplete.js the destroy method, does not close the item list if open.
The quick fix is to call the this.__hide(event); method first in the destroy function.
{noformat}
/*
* Destructor
*/
destroy: function () {
//TODO: add all unbind{noformat}
this.__hide(event);{noformat}
this.items = null;
this.cache = null;
var itemsContainer = rf.getDomElement(this.id + ID.ITEMS);
$(itemsContainer).removeData();
rf.Event.unbind(itemsContainer.parentNode, this.namespace);
$super.destroy.call(this);
}
{noformat}
Autocomplete - does not close the popup in destroy method.
-----------------------------------------------------------
Key: RF-12481
URL:
https://issues.jboss.org/browse/RF-12481
Project: RichFaces
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: component-input
Affects Versions: 4.2.2.Final
Environment: Chrome 17.0.963.83
Windows 7
Reporter: Morten Ludvigsen
Autocomplete - does not close the popup in destroy method. The Suggestion popup is left
hanging on the page.
If an Autocomplete is rendered while the item list is shown, the destroy method is not
closing the item list (popup box). The item list is left hanging on the page.
The only way to remove the items is to refresh the whole page.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira