mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-07 02:21:23 +00:00
prevent iOS from changing pages
This commit is contained in:
1 parent
56daeb5f26
commit
a508daf213
1 file changed
+4
@@ -170,6 +170,8 @@ class Form extends React.Component<Props, State> {
|
||||
handleTextChange = (ev: React.FormEvent<HTMLTextAreaElement>) => {
|
||||
const text = (ev.target as HTMLTextAreaElement).value;
|
||||
|
||||
ev.preventDefault();
|
||||
|
||||
let pseudoWords = text.split(' ');
|
||||
|
||||
if (text.length > 0) {
|
||||
@@ -183,6 +185,8 @@ class Form extends React.Component<Props, State> {
|
||||
}
|
||||
|
||||
this.setState({text: text});
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
handleFormSubmit = (ev: React.FormEvent<HTMLFormElement>) : boolean => {
|
||||
|
||||
Reference in new issue
Block a user