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

Discussions related to the forums itself. Call for moderators. Trash Posts area.
Post Reply
User avatar
atomizer
Long Handed Inserter
Long Handed Inserter
Posts: 86
Joined: Sat Sep 22, 2018 3:18 pm
Contact:

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

Post 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

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3707
Joined: Tue May 13, 2014 11:06 am
Contact:

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

Post 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.

Post Reply

Return to “This Forum”