I've inherited the SPFx components of a SharePoint solution that has a custom command set that replaces the OOB command menu bar items.The OOB menu items are removed by looping over
setInterval to set their display.
el.style.display = "none";
Up until recently, this worked fine but now the OOB command bar gets added again after the max interval has been reached and the
It seems clear that it is an additional command bar because if I extend the interval, set breakpoints on the display updates, I can see the elements are already hidden, yet they're back on the screen along with my custom commands.
I've tried a bunch of hacky stuff including removing all the locations where we set the display of the command bar back to
"" but nothing works; I can only assume something changed in SharePoint to cause this new behavior.
Any ideas on the cause or a fix?