The “Edit Release: No Label Button” from @Lioncat6 got an additional “No Catalog Number Button” but that latter button when pressed (although it fills in “[none]” in the “Cat. No:” text field) actually doesn’t seem to trigger an actual change event on the page for that field … as on the submit page it says I havent’ provide any change.
With the help of Gemini I could fix it:
I had to replace the block of code
const event = new KeyboardEvent('keydown', {
key: '',
bubbles: true,
cancelable: true
});
catNoInput.dispatchEvent(event);
with
// Trigger update using InputEvent and ChangeEvent
const inputEvent = new Event('input', { bubbles: true });
const changeEvent = new Event('change', { bubbles: true });
catNoInput.dispatchEvent(inputEvent);
catNoInput.dispatchEvent(changeEvent);