aem-core-wcm-components
aem-core-wcm-components copied to clipboard
FIX: Issue 2099 - Prevents Accordion to throw an error when selecting an element by URL hash
Q | A |
---|---|
Fixed Issues? | Fixes #2099 |
Patch: Bug Fix? | Yes |
Minor: New Feature? | |
Major: Breaking Change? | |
Tests Added + Pass? | Yes |
Documentation Provided | Yes (code comments and or markdown) |
Any Dependency Changes? | |
License | Apache License, Version 2.0 |
I've add a check if the hash starts with a number, if so, it will not go ahead with the onHashChange
function and will avoid the error on try to select a element with a invalid CSS selector.
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
@fagnervalente This issue was meanwhile fixed with https://github.com/adobe/aem-core-wcm-components/pull/2138. But thank you very much for the hands up and the PR!