-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Git rid of JQuery from ToolHelp.vue #14652
base: dev
Are you sure you want to change the base?
Git rid of JQuery from ToolHelp.vue #14652
Conversation
export default { | ||
props: { | ||
content: { | ||
type: String, | ||
required: true, | ||
}, | ||
}, | ||
computed: { | ||
formattedContent() { | ||
const $tmpl = $("<div/>").append(this.content); |
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.
It looks like this substantively changes the incoming content, to me, and that functionality would need to be updated instead of dropped?
i.e. -- it makes all of the anchors target a new window, and it rewrites static references in the tool help.
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.
And this PR turned green, and it should probably not :)
Please add some tests to make sure that the result is really the same before and after your modifications.
@MOHITRAJANI this needs a rebase and test. |
Instead of using the function formattedComponent which in turn used Jquery selector to directly using the content that comes from props which is already having the HTML that we need to render in String format. Related to task #11939
(If fixing a bug, please add any relevant error or traceback)
(For UI components, it is recommended to include screenshots or screencasts)
How to test the changes?
(Select all options that apply)
License