apply suggestion from kazumasa asato. tested and working properly (#1981)

This commit is contained in:
Zuhri Utama 2023-08-29 13:15:14 +07:00 committed by GitHub
parent 9c08235079
commit b7f1499d13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -687,8 +687,9 @@ public class Chosenbox<T> extends HtmlBasedComponent {
if (_options != null) {
smartUpdate("items", _options);
_options = null; //purge the data
}else {
smartUpdate("chgSel", getChgSel());
}
smartUpdate("chgSel", getChgSel());
}
private void updateListContent(String prefix, ListModel<T> subModel) {