PCF-Controls icon indicating copy to clipboard operation
PCF-Controls copied to clipboard

Custom Switch Control does not reflect live Read Only (disabled) changes

Open DarkyShadoW opened this issue 2 years ago • 3 comments

If a JS/BR unlock (make editable) a field the Custom Switch control does not reflect this change and still locked on "Read Only" status. You have to refresh the control via JS to make it editable.

DarkyShadoW avatar Aug 17 '23 06:08 DarkyShadoW

As workarround hiding and showing again the control force the control to re-render.

DarkyShadoW avatar Aug 17 '23 08:08 DarkyShadoW

Created PR #152 "updateView" to make the control get Switch lock/unlocked when is disabled/enabled on the form by JS/BR

DarkyShadoW avatar Aug 18 '23 10:08 DarkyShadoW

I installed the latest 1.12.3.0 version, and this issue still exists when using the 'New Look'. This is a show-stopper bug, I now need to remove this control from all of my apps, where I was using it extensively.

StillLearning1 avatar Feb 08 '24 20:02 StillLearning1