Skip to content

#36 Fix the modal display when there is no category with flavor#41

Open
minhduchoang195 wants to merge 1 commit intobycs-lp:mainfrom
minhduchoang195:#36-fix_first_category_tab_on_first_open
Open

#36 Fix the modal display when there is no category with flavor#41
minhduchoang195 wants to merge 1 commit intobycs-lp:mainfrom
minhduchoang195:#36-fix_first_category_tab_on_first_open

Conversation

@minhduchoang195
Copy link

Main reason: When the element modal is initialized, the first virtual click is triggered on the first category tab. This click should hide all buttons from other categories. The first tab can be the first category with or without flavors. However, if there is no category with flavors, the display order of the first category with flavors is still required. Therefore, the first virtual click cannot be executed in this scenario, and all buttons from all categories are displayed.

Resolution: Ensure that the list of categories with flavors is not empty before comparing display orders.

@sh-csg
Copy link
Contributor

sh-csg commented Nov 5, 2025

Hi @minhduchoang195 ,
thanks a lot for your contribution! Could you please change the commit to include also the current version of amd/build/ui.min.js ?

@minhduchoang195 minhduchoang195 force-pushed the #36-fix_first_category_tab_on_first_open branch from 9e7d2ce to 8b9be20 Compare November 26, 2025 10:12
@minhduchoang195
Copy link
Author

Hi @minhduchoang195 , thanks a lot for your contribution! Could you please change the commit to include also the current version of amd/build/ui.min.js ?

I have removed the changes in the minimized JS files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants