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

Reload page or webpart on PropertyFieldDropdownWithCallout while change selected option

Open bhoomesh-spe opened this issue 2 years ago • 1 comments

reload page or webpart on PropertyFieldDropdownWithCallout change selcted option

I have used "@pnp/spfx-property-controls": "^3.12.0" version.

I have used PropertyFieldDropdownWithCallout for property pane drop-down.

I have added 4 options under that drop down.

When I select options one by one from those 4 options the first time it worked as expected. But if I select any option a second time from that option it is not working.

So, I need to refresh my page or web-part while select another option from drop-down.

Below is my code snippet,

               PropertyFieldDropdownWithCallout('seletedOption', {
                  key: 'seletedOptionId',
                  label: 'Select Option',
                  options: [{
                    key: 'option 1',
                    text: 'option 1'
                  }, {
                    key: 'option 2',
                    text: 'option 2'
                  }, {
                    key: 'option 3',
                    text: 'option 3'
                  }, {
                    key: 'option 4',
                    text: 'option 4'
                  }],
                  selectedKey: this.properties.seletedOption? this.properties.seletedOption: "option 1",
                })

Can anyone help me with the same?

Thanks

bhoomesh-spe avatar Apr 03 '23 17:04 bhoomesh-spe

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Apr 03 '23 17:04 ghost