IzzyLeech / terok-nor-station

0 stars 1 forks source link

Bug: Javascript for decription field not working due to summernote #40

Open IzzyLeech opened 1 year ago

IzzyLeech commented 1 year ago

Describe the bug The javascript created to handle the description field in the post form now will allow whitespace only to be submitted. Even clicking on the description will enable the user to submit it. No alert message show when whitespace is entered, alert message only shows if the user hasn't clicked the description and submits.

Expected behavior An alert message should show if the user has not input the description field or entered whitespace only

IzzyLeech commented 1 year ago

It is fixed by parsing out the prerendered P tags that Summernotes has on its field and adding a validation error.