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

MM-14692 - Updating textarea placeholder structure #2548

Merged
merged 5 commits into from
Mar 29, 2019
Merged

MM-14692 - Updating textarea placeholder structure #2548

merged 5 commits into from
Mar 29, 2019

Conversation

asaadmahmood
Copy link
Contributor

Summary

MM-14692 - Updating textarea placeholder structure

Ticket Link

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

@asaadmahmood asaadmahmood added 2: Dev Review Requires review by a core commiter CherryPick/Approved Meant for the quality or patch release tracked in the milestone labels Mar 27, 2019
@asaadmahmood asaadmahmood requested review from hmhealey and enahum March 27, 2019 18:39
@amyblais amyblais added this to the v5.10.0 milestone Mar 27, 2019
components/autosize_textarea.jsx Outdated Show resolved Hide resolved
components/autosize_textarea.jsx Outdated Show resolved Hide resolved
components/autosize_textarea.jsx Outdated Show resolved Hide resolved
@asaadmahmood
Copy link
Contributor Author

@hmhealey Have a look. I still can't reproduce the RHS issue you're talking about though.

@hmhealey
Copy link
Member

Looks good to me. I think the changes to move the logic that shows/hides the placeholder to the render function fixed the issue I saw in the RHS. I think the RHS isn't having an update trigger when it first opens, and since it was checking if the placeholder should be visible on update, that's why I saw that issue

@hmhealey hmhealey added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter labels Mar 29, 2019
@hmhealey hmhealey merged commit de15d99 into mattermost:master Mar 29, 2019
hmhealey pushed a commit that referenced this pull request Mar 29, 2019
* MM-14692 - Updating textarea placeholder structure

* Updating tests

* Updating textarea changes

* Updating placeholder

* Updating tests
@hmhealey hmhealey 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 Mar 29, 2019
@asaadmahmood asaadmahmood deleted the MM-14692 branch March 29, 2019 14:28
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Mar 29, 2019
stevepartridge pushed a commit to stevepartridge/mattermost-webapp that referenced this pull request Mar 30, 2019
* MM-14692 - Updating textarea placeholder structure

* Updating tests

* Updating textarea changes

* Updating placeholder

* Updating tests
@@ -149,4 +160,5 @@ export default class AutosizeTextarea extends React.Component {
const style = {
container: {height: 0, overflow: 'hidden'},
reference: {height: 'auto', width: '100%'},
placeholder: {overflow: 'hidden', textOverflow: 'ellipsis', opacity: 0.5, 'pointer-events': 'none', position: 'absolute', 'white-space': 'nowrap'},
Copy link
Contributor

Choose a reason for hiding this comment

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

@asaadmahmood This is causing JS errors because this is JSX so pointer-events and white-space need to be pointerEvents and whiteSpace.

thekiiingbob pushed a commit to thekiiingbob/mattermost-webapp that referenced this pull request Apr 2, 2019
* MM-14692 - Updating textarea placeholder structure

* Updating tests

* Updating textarea changes

* Updating placeholder

* Updating tests
@DHaussermann DHaussermann added the Tests/Done Release tests have been written label Apr 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request 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/Done Release tests have been written
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants