feat: forward paste event to input/textarea elements

This commit is contained in:
Eric Liu 2022-06-02 18:30:05 -07:00
commit 60d5282021
10 changed files with 11 additions and 1 deletions

View file

@ -320,6 +320,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

@ -432,6 +432,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"