Fix: Field not getting disabled in dynamic textbox - SB Form #770
rajnishdargan
started this conversation in
Contribution
Replies: 1 comment 6 replies
|
@pallakartheekreddy |
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi @pallakartheekreddy , @HarishGangula
I found that the field was not getting disabled in the dynamic textbox in Sunbird Form.
The issue was due to Angular's behavior of removing the value of disabled fields from the form object.
Solution
Used
formControlRef.disable({ emitEvent: false })to fix the issue.PR Raised:
I have raised a PR for this fix - Sunbird-Ed/SunbirdEd-forms#228
Please review and merge the changes.
Request:
Once merged, please publish a new version of the npm package.
Steps to Build and Publish New Version (8.0.3):
npm run build-libweb@project-sunbird/common-form-elements-full(Current version is 8.0.2 - Check here)
cd dist/common-form-elementsnpm publish
cc @coolbung @snehal0904
All reactions