This commit is contained in:
Timothy Jaeryang Baek
2024-12-23 01:06:59 -07:00
parent b44b7e8162
commit 2c8fb66383
2 changed files with 7 additions and 8 deletions

View File

@@ -6,6 +6,8 @@
export let className =
'w-full rounded-lg px-3 py-2 text-sm bg-gray-50 dark:text-gray-300 dark:bg-gray-850 outline-none resize-none h-full';
export let onKeydown: Function = () => {};
let textareaElement;
$: if (textareaElement) {
@@ -48,6 +50,7 @@
value = text;
}}
on:paste={handlePaste}
on:keydown={onKeydown}
data-placeholder={placeholder}
/>