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

Fix EmailEditor subject field #1140

Merged
merged 1 commit into from Apr 23, 2018
Merged

Conversation

vincemtnz
Copy link
Contributor

@vincemtnz vincemtnz commented Apr 19, 2018

One of the recent changes to shouldComponentUpdate to improve performance introduced this bug. We were only checking for changes in the Editor state, bug ignoring changes in the Subject, so the DOM element wasn't being updated with the text (it's a controlled element). This fixes it.

This also adds a MAX_SUBJECT_LENGTH, set to 64 characters.

@vincemtnz vincemtnz added the bug label Apr 19, 2018
@vincemtnz vincemtnz force-pushed the bugfix-fix-subject-email-editor branch from d4d5c0b to ba14ad8 Compare April 23, 2018 13:16
@osahyoun
Copy link
Member

@eyko 💯

@vincemtnz vincemtnz merged commit 00953c5 into development Apr 23, 2018
@vincemtnz vincemtnz deleted the bugfix-fix-subject-email-editor branch April 23, 2018 17:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants