feat: forward paste event to input/textarea elements (#1332)

* chore(deps-dev): upgrade sveld, svelte-check

* feat: forward paste event to input/textarea elements

* Run "yarn build:docs"

* test: assert paste event
This commit is contained in:
metonym 2022-06-02 18:39:49 -07:00 committed by GitHub
commit e230db8115
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 96 additions and 61 deletions

View file

@ -334,6 +334,7 @@
ref.focus();
}
}}"
on:paste
/>
{#if invalid}
<WarningFilled class="bx--list-box__invalid-icon" />

View file

@ -135,6 +135,7 @@
on:blur="{({ relatedTarget }) => {
blurInput(relatedTarget);
}}"
on:paste
/>
{#if !$hasCalendar}
{#if invalid}

View file

@ -446,6 +446,7 @@
on:keyup
on:focus
on:blur
on:paste
disabled="{disabled}"
placeholder="{placeholder}"
id="{id}"

View file

@ -206,6 +206,7 @@
on:input="{onInput}"
on:focus
on:blur
on:paste
/>
{#if invalid}
<WarningFilled class="bx--number__invalid" />

View file

@ -148,6 +148,7 @@
}
}}"
on:keyup
on:paste
/>
<button
type="button"

View file

@ -114,7 +114,8 @@
on:keydown
on:keyup
on:focus
on:blur></textarea>
on:blur
on:paste></textarea>
</div>
{#if !invalid && helperText}
<div

View file

@ -190,6 +190,7 @@
on:keyup
on:focus
on:blur
on:paste
/>
<button
type="button"

View file

@ -201,6 +201,7 @@
on:keyup
on:focus
on:blur
on:paste
/>
{#if isFluid}
<hr class:bx--text-input__divider="{true}" />

View file

@ -111,6 +111,7 @@
on:keyup
on:focus
on:blur
on:paste
/>
</div>
<slot />

View file

@ -113,6 +113,7 @@
break;
}
}}"
on:paste
/>
<button
type="button"