-
Notifications
You must be signed in to change notification settings - Fork 41
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
776 add question help #890
Conversation
Changed to "i" icon. Please check again. |
The icon looks good :) |
There's a bug. When there are more than two questions in the same section with help text, all questions display the help for the last question. I think Home.vue, line 161, is the problem.
This should be done in the handler showHelp() defined in index.html, not as part of rendering the questions for the section in Home.vue. |
Nice catch. Fixed. Please check again. |
helpTxt = helpTxt | ||
.replace(/&/g, '&') | ||
.replace(/"/g, '"') | ||
.replace(/'/g, 'ooooo') |
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.
Not sure this escape makes sense. I think this replace section should just be using something like https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent
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.
Good eye. This escape is similar to encodeURIComponent, but add some more escape, and work around.
No description provided.