openanthem / nimbus-core

Getting Starting with NIMBUS-CORE
https://anthemopensource.atlassian.net/wiki/spaces/OSS/pages/157024674/Quickstart+Guide
Apache License 2.0
10 stars 49 forks source link

Checkbox is not being reset to unchecked state when we make it visible after hiding using ActivateConditional . #743

Open Jyoti-dev-java opened 3 years ago

Jyoti-dev-java commented 3 years ago

Issue Details

Type of Issue (check one with "X")

[ X] Bug Report => Please search GitHub for a similar issue or PR before submitting
[ ] Feature Request => Please ensure feature is not already in progress
[ ] Support Request => Please do not submit support requests here, instead see: https://discourse.oss.antheminc.com/

Current Behavior

Checkbox is not being reset to unchecked state when we make it visible after hiding using ActivateConditional .

Expected Behavior

Checkbox should be reset

How to Reproduce the Issue

Steps to Reproduce

1) Create a dropdown with min 2 values , e.g.- Yes and No. 2)Add activateConditional to it so that when 'Yes' is selected , checkbox is visible . 3) Now check the ckeckbox. 4) Change dropdown value to 'No'. Now checkbox will be hidden due to activateConditional on it . 5) Again select 'Yes' from dropdown . Now checkbox is visible but it still shows as checked . It should not be checked by default here .

Code Snippet

Please find attached files for code snippet

CodeSnippet.zip

Environment Details