-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature / update comment error message #161
Conversation
@sbrody Do you know how I can trigger this markup to appear in the frontend? |
Sorry - yes should have added some testing notes. Go to a single blog post and attempt to comment with an empty message and you will see the error markup. |
71749d7
to
33a65ca
Compare
@RobjS I've rebased in the changes setting jQuery as a dependency. On doing that I discovered a couple more errors in the JavaScript caused by improper use of $ - which I have also fixed here as they are related to the commenting issue. |
@sbrody I'm a bit unsure what's happening here! Before you pushed the new changes, I couldn't get the errors to trigger, though I'm not sure why. But with the new changes you've pushed, I can get them to trigger even without the changes from i.e. if I do |
@RobjS yes - the errors are displaying but are you not getting the console error, which prevents the error summary box above from appearing? (Although not related to the update, I thought it was worth fixing at the same time - shall I separate it out into another PR?) I should add - you are now seeing the error message because of the separate PR setting jquery as a dependency, which I rebased in to this PR as it's now been approved. I thought that would help with testing but it perhaps just created more confusion! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, that all makes sense now! LGTM 👍
Changes markup for comment error messages in line with update to 4.0. Can be tested once this PR has been approved.