I have a page for creating new release notes. Each release note can be associated with multiple System.UserRoles, so there is a reference selector on the page to add/remove UserRoles from the release note. However, it starts out empty (which is what I want), and if you hit the Save or Cancel buttons for the Release Note before adding a User Role, you get an error in Javascript: 'Uncaught (in promise) TypeError: Cannot read property 'attributes' of null'.
It seems obvious to me that I should be able to Cancel at least without adding anything and it should work properly. Is there something I'm missing?
Do I need to make custom Save and Cancel buttons for this page to call microflows to get around this, or is there a way to make the default buttons work in this case?