afterStateUpdated() not running on custom component
I have custom Section component that is opened and collapsed using a checkbox. It works as expected.
I have multiple CheckboxSection components in my form and want to ensure that only 1 is open at a given time. Maybe i could achieve this by doing some checks in the afterStateUpdated() method on each checkbox?
The Problem - afterStateUpdated() doesnt seem to run on the checkboxes. On the example code below the $state is not dumped.
3 Replies
The component class is basically just the default section component with 3 extra methods for the checkbox.
The checkbox is rendered in the view
The CheckboxSection components work as expected except for the afterStateUpdated method on the checkbox.
https://www.awesomescreenshot.com/video/22464078?key=51b79342d2ce9e5703bced135c554ca2
Any guidance would be really appreciated😬
Hi! Did you find any solution to this?
Hi, not yet...hopefully take another look at the weekend. Maybe there is a better approach to achieve an accordian style component...idk?