update UI after select category and subcategory
This commit is contained in:
@ -335,6 +335,8 @@ const App = {
|
||||
} else {
|
||||
document.getElementById('custom-category-group').classList.add('hidden');
|
||||
}
|
||||
|
||||
this.updateUI();
|
||||
},
|
||||
|
||||
renderSubcategories(categoryId) {
|
||||
@ -353,6 +355,7 @@ const App = {
|
||||
chip.addEventListener('click', () => {
|
||||
this.state.selection.subcategory = sub.id;
|
||||
this.renderSubcategories(categoryId);
|
||||
this.updateUI();
|
||||
});
|
||||
|
||||
container.appendChild(chip);
|
||||
@ -886,5 +889,3 @@ const App = {
|
||||
};
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => App.init());
|
||||
|
||||
App.init());
|
||||
|
||||
Reference in New Issue
Block a user