Page 1 of 1

"Copy blueprint" button in topic review section reloads the page

Posted: Sat Jan 28, 2023 4:51 pm
by atomizer
1) click "post reply" on this topic
2) write something in the text box
3) scroll down to this post in "topic review" below and click this:
4) page reloads and reply text is lost

Re: "Copy blueprint" button in topic review section reloads the page

Posted: Sun Jan 29, 2023 10:04 pm
by DaveMcW
In HTML, <button> has type="submit" by default. This means an unmodified button will refresh the page.

To work around this, give the button type="button".

The button in the reply is unmodified because the blueprint script failed. Figuring out why it failed is trickier.