diff --git a/ui/component/publishDescription/view.jsx b/ui/component/publishDescription/view.jsx index 193809273..ba80c93bb 100644 --- a/ui/component/publishDescription/view.jsx +++ b/ui/component/publishDescription/view.jsx @@ -18,11 +18,17 @@ function PublishDescription(props: Props) { setAdvancedEditor(!advancedEditor); } + function handleCommentChange(event) { + let descriptionValue = advancedEditor ? event : event.target.value; + + updatePublishForm({ description: descriptionValue }); + } + return ( updatePublishForm({ description: advancedEditor ? value : value.target.value })} + onChange={handleCommentChange} quickActionLabel={advancedEditor ? __('Simple Editor') : __('Advanced Editor')} quickActionHandler={toggleMarkdown} textAreaMaxLength={FF_MAX_CHARS_IN_DESCRIPTION}