PropertyPaneToggle "checked" option is being ignored
Category
- [ ] Question
- [ ] Typo
- [x] Bug
- [ ] Additional article idea
Expected or Desired Behavior
When "checked" option for a PropertyPaneToggle control is set to true, the control created in the property panel should be in and display in its "On" state.
Observed Behavior
When I add a toggle control to my property pane configuration, I set it's properties as directed:
PropertyPaneToggle('myTestToggle', {
checked: true,
label: "My Test Toggle",
key: "myTestToggle",
onText: "Toggle is On",
offText:"Toggle is Off"
})
But when I run the web part in the local workbench, this is the result:
Steps to Reproduce
- Create a new web part with the yeoman generator
- Add a toggle to the web part properties, and set the "checked" option of the toggle to true.
- Test in the SharePoint Workbench
@acksoft - Thanks for raising the concern. I will take a look at it and keep you posted.
@acksoft - This issue is now resolved and will be available to you in the next release. I am closing this issue now, but feel free to re open it if you see this issue in the next release.
Thanks, Srikanth
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues