Subject of the issue/enhancement/features
If a page contains only optional content then calculatePercentageComplete will return NaN because it performs division by zero. This results in the PLP indicator appearing to show 100% completion due to the resulting style --adapt-pagelevelprogress-percentage: NaN%;
Your environment
- latest framework (vanilla theme)
Steps to reproduce
Use "_isOptional":true on all contents of the page (components, blocks and articles).
Subject of the issue/enhancement/features
If a page contains only optional content then
calculatePercentageCompletewill returnNaNbecause it performs division by zero. This results in the PLP indicator appearing to show 100% completion due to the resulting style--adapt-pagelevelprogress-percentage: NaN%;Your environment
Steps to reproduce
Use
"_isOptional":trueon all contents of the page (components, blocks and articles).