From 5f35ac626aee13091eba1957282a700594d189e7 Mon Sep 17 00:00:00 2001 From: Sumedha Pramod Date: Thu, 14 Dec 2017 09:29:23 -0800 Subject: [PATCH] Fix: set textarea.placeholder when generating dialogs (#74) --- src/AnnotationDialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AnnotationDialog.js b/src/AnnotationDialog.js index 8923f4a7f..b252c9341 100644 --- a/src/AnnotationDialog.js +++ b/src/AnnotationDialog.js @@ -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'); @@ -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);