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
Hi, I have encountered an error with the toggle group, if I set the initial form value it is not shown in a group of toggles until the user changes the choice.
I think that the issue is caused by the fact that, the toggle are not yet rendered and hence _setSelectionByValue exits and later when the toggles appear on ngAfterContentInit their state is not updated.
It could also be possible to set the toggle state in a BrnToggleDirective constructor from the injected ToggleGroupProvider.
I have found a workaround of setting state via the toggle state input, but would like to fix this properly in a group implementation
Please provide the exception or error you saw
No response
Other information
No response
I would be willing to submit a PR to fix this issue
Yes
No
The text was updated successfully, but these errors were encountered:
Please provide the environment you discovered this bug in.
Angular: 18.2
@spartan-ng/ui-tooltip-brain: "0.0.1-alpha.356"
Which area/package is the issue in?
toggle
Description
Hi, I have encountered an error with the toggle group, if I set the initial form value it is not shown in a group of toggles until the user changes the choice.
I think that the issue is caused by the fact that, the toggle are not yet rendered and hence
_setSelectionByValue
exits and later when the toggles appear onngAfterContentInit
their state is not updated.It could also be possible to set the toggle state in a
BrnToggleDirective
constructor from the injectedToggleGroupProvider
.I have found a workaround of setting state via the toggle state input, but would like to fix this properly in a group implementation
Please provide the exception or error you saw
No response
Other information
No response
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: