You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current Behavior
Some components retrieve the component id from its corresponding sling model (i.e The accordion component) while others explicitly initialize an instance of the Component model (i.e. The button component). This last initialization is unnecessary (as all component's sling models inherit and implement the main Component model).
Expected behavior/code
All components should retrieve the Component's ID directly from its corresponding sling model, no further initialization is needed.
Environment
NA
Possible Solution
I would like to have all the initialization and calls to the general component model replaced with a call to the specific component model for each model.
Bug Report
Current Behavior
Some components retrieve the component id from its corresponding sling model (i.e The accordion component) while others explicitly initialize an instance of the Component model (i.e. The button component). This last initialization is unnecessary (as all component's sling models inherit and implement the main Component model).
Expected behavior/code
All components should retrieve the Component's ID directly from its corresponding sling model, no further initialization is needed.
Environment
Possible Solution
I would like to have all the initialization and calls to the general component model replaced with a call to the specific component model for each model.
Additional context / Screenshots
Example:
Given the existing Button HTL code
We'd do a replacement with the following code instead
The text was updated successfully, but these errors were encountered: