sp-dev-fx-property-controls icon indicating copy to clipboard operation
sp-dev-fx-property-controls copied to clipboard

PropertyFieldCollectionData field defaultValue is undefined when set "isVisible: () => false"

Open vishalshitole opened this issue 1 year ago • 0 comments

Category

  • [ ] Enhancement
  • [ ] Bug
  • [x] Question

Version

Please specify what version of the library you are using: [ 3.16.0 ]

Question

How do I set the "isVisible" property of one of the field in PropertyFieldCollectionData?

Observed Behavior

When I set the field property isVisible to false to hide it from the collection grid, its defaultValue is undefined. However, when isVisible is not set to false, defaultValue gets set to expected value. Eve when "disable" property is set to true.

Steps to Reproduce

My field in the PropertyFieldCollectionData looks like below.

image

Am I doing anything wrong here? Please suggest.

Thanks!

vishalshitole avatar Apr 08 '24 08:04 vishalshitole