adjust textarea maxlength

This commit is contained in:
Joao Moreno 2016-04-11 11:14:48 +02:00
parent 3881282c8d
commit 5b10e423a1

View file

@ -215,6 +215,7 @@ export class FeedbackDropdown extends Dropdown {
this.sentiment = smile ? 1 : 0;
this.maxFeedbackCharacters = this.feedbackService.getCharacterLimit(this.sentiment);
this.updateCharCountText();
$(this.feedbackDescriptionInput).attr({ maxlength: this.maxFeedbackCharacters });
}
protected invoke(element: Builder, callback: () => void): Builder {