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
Custom option/button templates for dropdown show up only after value is reselected with reactive forms
Bug already reported?
I confirm that I have checked if the bug already has been reported
For which framework/library you are reporting the bug
Angular
Component name
dropdown
Description
There seems to be issues to display custom option/button templates when using reactive form control. Dropdown options structure can be as simple as an array of objects with label and value, however the actual templates won't be displayed until value is selected/reselected. You can see both cases below
When initial value is not provided (before making a selection) - custom option template is not visible
When initial value is not provided (after making a selection) - custom option template becomes visible
When initial value is provided (before reselecting value) - custom button (selected value) template is not visible
When initial value is provided (after reselecting value) - custom button (selected value) template becomes not visible
Steps To Reproduce
No response
Current Behaviour
When custom option/button template is provided while using a reactive form approach, the default option is being shown initially and custom option/button template becomes visible after selecting/reselecting dropdown value
Expected Behaviour
Custom option/button template should be shown from the start if provided while using a reactive form approach
The text was updated successfully, but these errors were encountered:
@gabrieledaugenaite A similar issue was fixed recently, in 3.1.0.
It could be something else in your case, but I just want to confirm that you are experiencing the issue on the latest released version?
EldRoos
changed the title
Custom option/button templates for dropdown show up only after value is reselected with reactive forms
Dropdown: Custom option/button templates for dropdown show up only after value is reselected with reactive forms
Mar 17, 2024
EldRoos
changed the title
Dropdown: Custom option/button templates for dropdown show up only after value is reselected with reactive forms
Dropdown: Custom option shows only after reselected with reactive forms
Mar 17, 2024
Custom option/button templates for dropdown show up only after value is reselected with reactive forms
Bug already reported?
For which framework/library you are reporting the bug
Angular
Component name
dropdown
Description
There seems to be issues to display custom option/button templates when using reactive form control. Dropdown options structure can be as simple as an array of objects with label and value, however the actual templates won't be displayed until value is selected/reselected. You can see both cases below
When initial value is not provided (before making a selection) - custom option template is not visible
When initial value is not provided (after making a selection) - custom option template becomes visible
When initial value is provided (before reselecting value) - custom button (selected value) template is not visible
When initial value is provided (after reselecting value) - custom button (selected value) template becomes not visible
Steps To Reproduce
No response
Current Behaviour
When custom option/button template is provided while using a reactive form approach, the default option is being shown initially and custom option/button template becomes visible after selecting/reselecting dropdown value
Expected Behaviour
Custom option/button template should be shown from the start if provided while using a reactive form approach
The text was updated successfully, but these errors were encountered: