diff --git a/ui/src/components/post-form.tsx b/ui/src/components/post-form.tsx index fd51c38..9bfa706 100644 --- a/ui/src/components/post-form.tsx +++ b/ui/src/components/post-form.tsx @@ -20,12 +20,12 @@ import { WebSocketService, UserService } from '../services'; import { msgOp, getPageTitle, - debounce, validURL, capitalizeFirstLetter, markdownHelpUrl, archiveUrl, mdToHtml, + debounce, } from '../utils'; import * as autosize from 'autosize'; import { i18n } from '../i18next'; @@ -79,6 +79,7 @@ export class PostForm extends Component { if (this.props.post) { this.state.postForm = { body: this.props.post.body, + // NOTE: debouncing breaks both these for some reason, unless you use defaultValue name: this.props.post.name, community_id: this.props.post.community_id, edit_id: this.props.post.id, @@ -142,7 +143,7 @@ export class PostForm extends Component { {this.state.suggestedTitle && ( @@ -208,7 +209,7 @@ export class PostForm extends Component {