Skip to content

Commit

Permalink
Fix: set textarea.placeholder when generating dialogs (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
pramodsum committed Dec 19, 2017
1 parent c1bdcdb commit 5f35ac6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AnnotationDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ class AnnotationDialog extends EventEmitter {
const createTextArea = document.createElement('textarea');
createTextArea.classList.add(constants.CLASS_TEXTAREA);
createTextArea.classList.add(constants.CLASS_ANNOTATION_TEXTAREA);
createTextArea.placeHolder = this.localized.addCommentPlaceholder;
createTextArea.placeholder = this.localized.addCommentPlaceholder;
createSectionEl.appendChild(createTextArea);

const createBtnsContainer = document.createElement('div');
Expand Down Expand Up @@ -927,7 +927,7 @@ class AnnotationDialog extends EventEmitter {
replyTextArea.classList.add(constants.CLASS_TEXTAREA);
replyTextArea.classList.add(constants.CLASS_ANNOTATION_TEXTAREA);
replyTextArea.classList.add(CLASS_REPLY_TEXTAREA);
replyTextArea.placeHolder = this.localized.replyPlaceholder;
replyTextArea.placeholder = this.localized.replyPlaceholder;
replyTextArea.setAttribute('data-type', constants.DATA_TYPE_REPLY_TEXTAREA);
replyContainer.appendChild(replyTextArea);

Expand Down

0 comments on commit 5f35ac6

Please sign in to comment.