@annalib/anna-core 35.3.1 → 35.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3341,9 +3341,19 @@ class AnnaFilterService {
3341
3341
  item.disableTooltipIcon = true;
3342
3342
  item.filterSortObjectKeys.forEach((key) => {
3343
3343
  const latestFilters = this.appliedFiltersArray;
3344
- if (latestFilters.length > 0 &&
3345
- item.disableTooltipIcon &&
3346
- latestFilters[latestFilters.length - 1] === key) {
3344
+ // if (
3345
+ // latestFilters.length > 0 &&
3346
+ // item.disableTooltipIcon &&
3347
+ // latestFilters[latestFilters.length - 1] === key
3348
+ // ) {
3349
+ // item.disableTooltipIcon = false;
3350
+ // }
3351
+ // Enable the tooltip icon if *any* filter is currently applied on this column
3352
+ // Earlier we were only enabling the icon when the column happened to be the **last**
3353
+ // applied filter. This caused scenarios where the icon became disabled when users
3354
+ // switched between easy-filters after applying a column filter (e.g. AIR DATE & TIME).
3355
+ // Now, as long as the column has an active filter, the icon will stay enabled.
3356
+ if (item.disableTooltipIcon && latestFilters.includes(key)) {
3347
3357
  item.disableTooltipIcon = false;
3348
3358
  }
3349
3359
  if (item.disableTooltipIcon) {