sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

PropertyPaneToggle "checked" option is being ignored

Open acksoft opened this issue 9 years ago • 3 comments

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:

toggleoff

Steps to Reproduce

  1. Create a new web part with the yeoman generator
  2. Add a toggle to the web part properties, and set the "checked" option of the toggle to true.
  3. Test in the SharePoint Workbench

acksoft avatar Aug 01 '17 21:08 acksoft

@acksoft - Thanks for raising the concern. I will take a look at it and keep you posted.

srideshpande avatar Aug 01 '17 22:08 srideshpande

@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

srideshpande avatar Aug 11 '17 22:08 srideshpande

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

msft-github-bot avatar Jan 29 '20 06:01 msft-github-bot