wcm-io/io.wcm.caconfig.editor

The category dropdown doesn't reflect the actual selection state

Closed this issue · 5 comments

d33t commented

The "category" dropdown doesn't get updated on page load and on selection and thus doesn't reflect the actual selection state and shows always “all” even if other option is selected. After a page refresh, the last chosen value gets internally selected, the dropdown still shows "all", but the values displayed are for the previously selected category.

To summarize:

  1. The filter "category" will always show “all” and never the actual selected category.
  2. The previous selected value is stored on client side and when the page is refreshed may lead to confusions where the user see “all” selected but not the expected results for this category.

thanks for the report. this sounds like a bug, i will have a look at it (in november)

i can confirm the problem on AEM 6.5.18, but it works fine on AEMaaCS SDK.

d33t commented

Thanks for taking a look and confirming. It sounds like you have a fix for it already possibly present on the AEMaaCS branch (even if I don't see it)? Or is it the same code that just behaves differently on AEMaaCS?

the previous code already worked fine in AEMaaCS SDK.
#21 refactors the code in a way that should work both on AEM 6.5 and AEMaaCS - can you give it a try?

d33t commented

I can confirm that your fix works on AEM 6.5.17. Thank you!