GTBitsOfGood / canine-assistants

Educating the Dogs Who Change the World
https://dev--canine-assistants.netlify.app
MIT License
4 stars 0 forks source link

[FE] Fix Show more button on Logs #186

Closed afazio1 closed 6 months ago

afazio1 commented 6 months ago

Description

Create a new log with a long description. Click the “Show more” button. See that a toast appears.

Investigate why the “Show more” button is triggering a toast. We’ve had similar issues with this before and it’s most likely because this button exists in a form (dog edit) and the HTML attribute type is not specified. If a button is in a form and the type is not specified, it defaults to submit which causes the toast to be triggered.

Start by making sure the button type="button".