List formatting: Hide 'New' doesn't work when multiple Content Types are visible #10124
Open
9 tasks
Labels
type:bug-suspected
Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
None
What browser(s) / client(s) have you tested
Additional environment details
Describe the bug / error
Bug
The Command Bar formatting fails to hide the "New" button. It does change the style of the button, but fails to hide it entirely.
Seems to be an issue with lists with multiple Content types.
Workaround
Found a temporary fix
1. Go to list settings and choose "Change new button order and default content type"


2. Hide all content types, except one
Steps to reproduce
Expected behavior
Usually Hiding the 'new' button works, no matter how many content type a list has.
Given that new content types is visible, by default, this error causes the formatting to break, each time new content types are added by end users
The text was updated successfully, but these errors were encountered: