New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
command.disabled not always respected #7845
Comments
|
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
|
Thanks @kkazala for reporting this one! |
|
This should be rolled out WW by now. |
|
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 |


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
Thank you for fixing #7795!
I now changed my CommandSet logic to:
When debugging, the 'COMMAND_2' button is not enabled/disabled when switching between two items with different Submitted values.
I think that
this.raiseOnChange()is not required for thedisabledstate (?). I called it anyway hoping it would fix the issue but it doesn't have any impact.Steps to reproduce
TEST 1
TEST 2
Execute the above steps 1-10, and then

11. Click "outside" of the list to unselect the row
12. Ensure that you get the following console output:
14. The button "COMMAND_2 should be disabled but it's still enabled
Expected behavior
In the step 14 in the tests described above, the COMMAND_2 button should be disabled
The text was updated successfully, but these errors were encountered: