It took me a while to grasp the error. It does occurr due to the TEMPLATE-MOD BEEING CLONED. Please assist.
Prerequisites
- I checked the documentation and found no answer
- I checked to make sure that this issue has not already been filed
- this issue relates to a TEMPLATE Mod in the anymod Template gallery , thus it is publicly viewable
Expected Behavior
If the send button is clicked while the Message field is empty , an alert should show up , but that does not happen
Current Behavior
The expected alert does not show up
Failure Information (for bugs)
Steps to Reproduce
for reproducing the issue please FIRST CLONE THE BELOW TEMPLATE MOD:
https://anymod.com/mod/swing-up-form-rdokl
Then click the send button without text inside message-textfield
Steps:
- do not Enter text into the form’s input fields
- Click the submit button
- View the source and see the following line of JS code is not performing
if (!this.message) return this.alert = 'Please add your message'
Context
the setup is simple: The bug does NOT OCCUR right inside the Template MOD , but once the Mod is cloned, the error will be prevailing. The case is easily reproducible.
It took me a while to grasp the error. It does occurr due to the TEMPLATE-MOD BEEING CLONED. Please assist.