Add sleep function to wait for input update
This commit is contained in:
@@ -53,6 +53,7 @@
|
|||||||
<span class="text-textcolor2 text-sm">Grotesque Contents and non-adult characters with NSFW would be banned.</span>
|
<span class="text-textcolor2 text-sm">Grotesque Contents and non-adult characters with NSFW would be banned.</span>
|
||||||
{/if}
|
{/if}
|
||||||
<Button on:click={async () => {
|
<Button on:click={async () => {
|
||||||
|
await sleep(1) // wait for the input to be updated
|
||||||
const enNotes = creatorNotes.en
|
const enNotes = creatorNotes.en
|
||||||
const latin1 = /^[\x00-\xFF]*$/
|
const latin1 = /^[\x00-\xFF]*$/
|
||||||
if(enNotes.length < 10){
|
if(enNotes.length < 10){
|
||||||
@@ -86,7 +87,7 @@
|
|||||||
import SelectInput from "../GUI/SelectInput.svelte";
|
import SelectInput from "../GUI/SelectInput.svelte";
|
||||||
import { CCLicenseData } from "src/ts/creation/license";
|
import { CCLicenseData } from "src/ts/creation/license";
|
||||||
import OptionInput from "../GUI/OptionInput.svelte";
|
import OptionInput from "../GUI/OptionInput.svelte";
|
||||||
import { parseMultilangString } from "src/ts/util";
|
import { parseMultilangString, sleep } from "src/ts/util";
|
||||||
import MultiLangInput from "../GUI/MultiLangInput.svelte";
|
import MultiLangInput from "../GUI/MultiLangInput.svelte";
|
||||||
export let close = () => {}
|
export let close = () => {}
|
||||||
export let char:character
|
export let char:character
|
||||||
|
|||||||
Reference in New Issue
Block a user