Temp fix textarea

This commit is contained in:
kwaroran
2024-11-02 23:55:48 +09:00
parent 5b975948b7
commit 03e2390006
2 changed files with 4 additions and 1 deletions

View File

@@ -38,7 +38,7 @@
hideAutoComplete()
}}
>
{#if !highlight}
{#if !highlight || disableHighlight}
<textarea
class="w-full h-full bg-transparent focus-within:outline-none resize-none absolute top-0 left-0 z-50 overflow-y-auto"
class:px-4={padding}
@@ -104,6 +104,7 @@
import { isMobile } from 'src/ts/globalApi.svelte';
import { isFirefox, sleep } from 'src/ts/util';
import { onDestroy, onMount } from 'svelte';
import { disableHighlight } from 'src/ts/stores.svelte';
interface Props {
size?: 'xs'|'sm'|'md'|'lg'|'xl'|'default';
autocomplete?: 'on'|'off';

View File

@@ -89,6 +89,8 @@ export const DBState = $state({
db: {} as any as Database
});
export const disableHighlight = writable(true)
let selIdState = $state(0)
selectedCharID.subscribe((v) => {