As far as I can tell, the correct solution here is to use `<button type="button">`. Without specifying the type, it defaults to having the semantics of a submit button, which is not what we want.