stashing
This commit is contained in:
parent
69fd9a1753
commit
8e0eee5847
8 changed files with 220 additions and 70 deletions
|
@ -58,6 +58,13 @@ export function Textarea(props: TextareaProps) {
|
|||
}))
|
||||
}, 300);
|
||||
|
||||
const onInput = (e: InputEvent) => {
|
||||
const target = e.target as HTMLElement;
|
||||
|
||||
console.log(e);
|
||||
console.log(target.innerText, target.textContent, target.innerHTML);
|
||||
};
|
||||
|
||||
const onKeyUp = (e: KeyboardEvent) => {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
|
@ -92,6 +99,7 @@ export function Textarea(props: TextareaProps) {
|
|||
class={`${css.textarea} ${props.class}`}
|
||||
lang={props.lang}
|
||||
dir="auto"
|
||||
oninput={onInput}
|
||||
onkeyup={onKeyUp}
|
||||
on:keydown={e => e.stopPropagation()}
|
||||
on:pointerdown={e => e.stopPropagation()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue