-
Type:
Task
-
Status: Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: 7.4.3.8 CE GA8, 7.4.13 DXP U4, Master
-
Component/s: JS APIs and Utilities
-
Labels:
-
Git Pull Request:
Tag attribute componentId is not mandatory in tag <liferay-frontend:component> Thus, it means that if you have several components without it in the page, only one gets registered in the Liferay.component register and only that is disposed properly.
Autogenerating this in case none is provided avoid this problem.
The same is done in render method for react components: https://github.com/liferay/liferay-portal/blob/bb68c01a156968581daceaad75b1a6565fcac700/modules/apps/frontend-js/frontend-js-react-web/src/main/resources/META-INF/resources/js/render.tsx#L60-L62