Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

MM-22191: Fix the mentions that get attached in a list #4844

Merged
merged 3 commits into from
Feb 10, 2020
Merged

Conversation

ethervoid
Copy link
Contributor

@ethervoid ethervoid commented Feb 6, 2020

After we converted our lists to table cells the whitespace nodes
behaves differently for Firefox and Webkit so wrapping them in the
same span, fixes the problem.

Thank you @hmhealey for your help

Summary

This PR fixes a problem introduced when we make the list elements a table. After that, the whitespace nodes kept working in Firefox but in Webkit didn't.

Looks like the mix between tables and li elements causes this problem and wrapping the content of the li element into a span fixes it.

Ticket Link

https://mattermost.atlassian.net/browse/MM-22192

After we converted our lists to table cells the whitespace nodes
behaves differently for Firefox and Webkit so wrapping them in the
same span, fixes the problem.
@ethervoid ethervoid added 2: Dev Review Requires review by a core commiter Tests/Not Needed Does not require new release tests 3: QA Review Requires review by a QA tester CherryPick/Candidate A candidate for a quality or patch release, but not yet approved labels Feb 6, 2020
@ethervoid ethervoid added this to the v5.20.0 milestone Feb 6, 2020
@ethervoid ethervoid changed the title Wrap list elements in a span MM-22191: Fix the mentions that get attached in a list Feb 6, 2020
@amyblais
Copy link
Member

amyblais commented Feb 7, 2020

@ethervoid Do you know which PR caused this? Does this affect other things than autolinks?

@ethervoid
Copy link
Contributor Author

@amyblais The regression is caused by this PR. AFAIK everything inside a <span> element is affected: autolink is an example of it

@amyblais amyblais added CherryPick/Approved Meant for the quality or patch release tracked in the milestone and removed CherryPick/Candidate A candidate for a quality or patch release, but not yet approved labels Feb 7, 2020
@ethervoid
Copy link
Contributor Author

/update-branch

@ethervoid
Copy link
Contributor Author

@hmhealey a gentle ping :D

@ethervoid ethervoid requested review from devinbinnie and removed request for hmhealey February 10, 2020 18:54
@devinbinnie devinbinnie removed the 2: Dev Review Requires review by a core commiter label Feb 10, 2020
@ethervoid
Copy link
Contributor Author

@devinbinnie Thank you! :)

@ethervoid ethervoid merged commit 1e35773 into master Feb 10, 2020
@ethervoid ethervoid deleted the MM-22192 branch February 10, 2020 18:56
@mattermod mattermod added CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone and removed CherryPick/Approved Meant for the quality or patch release tracked in the milestone labels Feb 10, 2020
@ethervoid
Copy link
Contributor Author

@lindy65 Sorry I've merged it before QA 🤦‍♂️ I'll wait to merge the cherry pick until I have the ok from you :_(

@lindy65 lindy65 added the Setup Cloud Test Server Setup a test server using Mattermost Cloud label Feb 10, 2020
@lindy65
Copy link
Contributor

lindy65 commented Feb 10, 2020

OK, thanks @ethervoid - testing now 👍

@lindy65 lindy65 removed 3: QA Review Requires review by a QA tester Setup Cloud Test Server Setup a test server using Mattermost Cloud labels Feb 10, 2020
@mattermod
Copy link
Contributor

Test server creation failed. See the logs for more information.

@lindy65
Copy link
Contributor

lindy65 commented Feb 10, 2020

Thanks @ethervoid - tested on the cherry-pick spinwick and this is fixed 👍

ethervoid pushed a commit that referenced this pull request Feb 10, 2020
After we converted our lists to table cells the whitespace nodes
behaves differently for Firefox and Webkit so wrapping them in the
same span, fixes the problem.
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Feb 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Changelog/Not Needed Does not require a changelog entry CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone Docs/Not Needed Does not require documentation Tests/Not Needed Does not require new release tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants