You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested
💥 Internet Explorer
💥 Microsoft Edge
💥 Google Chrome
💥 FireFox
💥 Safari
mobile (iOS/iPadOS)
mobile (Android)
not applicable
other (enter in the "Additional environment details" area below)
Additional environment details
Edge Version 132.0.2957.140
SPFx version 1.20.0
Node.js version 18.17.1
"New modern", "Post modern", "New new" - or whatever you want to call the new list layout
Describe the bug / error
I'm building a List View Command Set extension
When the page is loaded my, and my _onListViewStateChanged(....) function is run for the first time, the this.context.listView.selefctedRows is undefined, rather than an empty array, this change seemingly happened over night.
Steps to reproduce
Once you create a new List View Command Set extension the _onListViewStateChanged is added automatically, flip the logic as such: compareOneCommand.visible = this.context.listView.selectedRows.length === 0 and you should observe the behaviour
Expected behavior
this.context.listView.selectedRows should be an empty array if no rows are selected, even upon the first run.
The text was updated successfully, but these errors were encountered:
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
Describe the bug / error
I'm building a List View Command Set extension
When the page is loaded my, and my
_onListViewStateChanged(....)
function is run for the first time, thethis.context.listView.selefctedRows
isundefined
, rather than an empty array, this change seemingly happened over night.Steps to reproduce
Once you create a new List View Command Set extension the
_onListViewStateChanged
is added automatically, flip the logic as such:compareOneCommand.visible = this.context.listView.selectedRows.length === 0
and you should observe the behaviourExpected behavior
this.context.listView.selectedRows
should be an empty array if no rows are selected, even upon the first run.The text was updated successfully, but these errors were encountered: