mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
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:
parent
f25a10c9c4
commit
e230db8115
33 changed files with 96 additions and 61 deletions
|
@ -334,6 +334,7 @@
|
|||
ref.focus();
|
||||
}
|
||||
}}"
|
||||
on:paste
|
||||
/>
|
||||
{#if invalid}
|
||||
<WarningFilled class="bx--list-box__invalid-icon" />
|
||||
|
|
|
@ -135,6 +135,7 @@
|
|||
on:blur="{({ relatedTarget }) => {
|
||||
blurInput(relatedTarget);
|
||||
}}"
|
||||
on:paste
|
||||
/>
|
||||
{#if !$hasCalendar}
|
||||
{#if invalid}
|
||||
|
|
|
@ -446,6 +446,7 @@
|
|||
on:keyup
|
||||
on:focus
|
||||
on:blur
|
||||
on:paste
|
||||
disabled="{disabled}"
|
||||
placeholder="{placeholder}"
|
||||
id="{id}"
|
||||
|
|
|
@ -206,6 +206,7 @@
|
|||
on:input="{onInput}"
|
||||
on:focus
|
||||
on:blur
|
||||
on:paste
|
||||
/>
|
||||
{#if invalid}
|
||||
<WarningFilled class="bx--number__invalid" />
|
||||
|
|
|
@ -148,6 +148,7 @@
|
|||
}
|
||||
}}"
|
||||
on:keyup
|
||||
on:paste
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
|
|
|
@ -114,7 +114,8 @@
|
|||
on:keydown
|
||||
on:keyup
|
||||
on:focus
|
||||
on:blur></textarea>
|
||||
on:blur
|
||||
on:paste></textarea>
|
||||
</div>
|
||||
{#if !invalid && helperText}
|
||||
<div
|
||||
|
|
|
@ -190,6 +190,7 @@
|
|||
on:keyup
|
||||
on:focus
|
||||
on:blur
|
||||
on:paste
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
|
|
|
@ -201,6 +201,7 @@
|
|||
on:keyup
|
||||
on:focus
|
||||
on:blur
|
||||
on:paste
|
||||
/>
|
||||
{#if isFluid}
|
||||
<hr class:bx--text-input__divider="{true}" />
|
||||
|
|
|
@ -111,6 +111,7 @@
|
|||
on:keyup
|
||||
on:focus
|
||||
on:blur
|
||||
on:paste
|
||||
/>
|
||||
</div>
|
||||
<slot />
|
||||
|
|
|
@ -113,6 +113,7 @@
|
|||
break;
|
||||
}
|
||||
}}"
|
||||
on:paste
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue