mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-29 19:30:34 +00:00
parent
aee6ee5a7c
commit
d68205ce70
1 changed files with 4 additions and 4 deletions
8
ui/src/components/post-form.tsx
vendored
8
ui/src/components/post-form.tsx
vendored
|
@ -343,7 +343,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
|
||||||
i.setState(i.state);
|
i.setState(i.state);
|
||||||
}
|
}
|
||||||
|
|
||||||
handlePostUrlChange(i: PostForm, event: any) {
|
handlePostUrlChange = debounce((i: PostForm, event: any) => {
|
||||||
i.state.postForm.url = event.target.value;
|
i.state.postForm.url = event.target.value;
|
||||||
if (validURL(i.state.postForm.url)) {
|
if (validURL(i.state.postForm.url)) {
|
||||||
let form: SearchForm = {
|
let form: SearchForm = {
|
||||||
|
@ -367,9 +367,9 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
i.setState(i.state);
|
i.setState(i.state);
|
||||||
}
|
});
|
||||||
|
|
||||||
handlePostNameChange(i: PostForm, event: any) {
|
handlePostNameChange = debounce((i: PostForm, event: any) => {
|
||||||
i.state.postForm.name = event.target.value;
|
i.state.postForm.name = event.target.value;
|
||||||
let form: SearchForm = {
|
let form: SearchForm = {
|
||||||
q: i.state.postForm.name,
|
q: i.state.postForm.name,
|
||||||
|
@ -387,7 +387,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
i.setState(i.state);
|
i.setState(i.state);
|
||||||
}
|
});
|
||||||
|
|
||||||
handlePostBodyChange(i: PostForm, event: any) {
|
handlePostBodyChange(i: PostForm, event: any) {
|
||||||
i.state.postForm.body = event.target.value;
|
i.state.postForm.body = event.target.value;
|
||||||
|
|
Loading…
Reference in a new issue