Skip to content
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

#2518 - HTML rendering bug in BannerGeneral.vue #2532

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

SebinSong
Copy link
Collaborator

@SebinSong SebinSong commented Jan 21, 2025

closes #2518

[ Fix screenshot ]
Can see the <a /> tag is rendered correctly in the DOM.

image


BTW, This comment mentions that #2139 introduced this bug but that is not correct...

That PR is a fix for chatroom-specific bugs and RenderMessageWithMarkdown.vue(I built it) is not designed to be used inside a banner. So I think it's somewhere further up in the past commit history.

@SebinSong SebinSong self-assigned this Jan 21, 2025
</template>

<script>
import TransitionExpand from '@components/TransitionExpand.vue'
import { debounce } from '@model/contracts/shared/giLodash.js'
import RenderMessageWithMarkdown from '@containers/chatroom/chat-mentions/RenderMessageWithMarkdown.js'
Copy link
Collaborator Author

@SebinSong SebinSong Jan 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using RenderMessageWithMarkdown.vue here is wrong (As it's a component built for chatroom) but regardless, it internally used v-safe-html custom directive which is the thing we need here. So I just replaced this component with a <div /> that uses this directive.

Copy link

cypress bot commented Jan 21, 2025

group-income    Run #3773

Run Properties:  status check passed Passed #3773  •  git commit 98a04940e5 ℹ️: Merge e646ebcd2d0607ee89e044bf97818bf1d9949a80 into f79daaaff00b7f1178417384bdf1...
Project group-income
Branch Review sebin/task/#2518-html-in-banner
Run status status check passed Passed #3773
Run duration 11m 04s
Commit git commit 98a04940e5 ℹ️: Merge e646ebcd2d0607ee89e044bf97818bf1d9949a80 into f79daaaff00b7f1178417384bdf1...
Committer Sebin Song
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 10
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 112
View all changes introduced in this branch ↗︎

Copy link
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@taoeffect taoeffect merged commit ae22899 into master Jan 21, 2025
4 checks passed
@taoeffect taoeffect deleted the sebin/task/#2518-html-in-banner branch January 21, 2025 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTML in BannerGeneral
2 participants