mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
feat: forward paste event to input/textarea elements
This commit is contained in:
parent
d6cf4cf426
commit
60d5282021
10 changed files with 11 additions and 1 deletions
|
@ -320,6 +320,7 @@
|
||||||
ref.focus();
|
ref.focus();
|
||||||
}
|
}
|
||||||
}}"
|
}}"
|
||||||
|
on:paste
|
||||||
/>
|
/>
|
||||||
{#if invalid}
|
{#if invalid}
|
||||||
<WarningFilled class="bx--list-box__invalid-icon" />
|
<WarningFilled class="bx--list-box__invalid-icon" />
|
||||||
|
|
|
@ -135,6 +135,7 @@
|
||||||
on:blur="{({ relatedTarget }) => {
|
on:blur="{({ relatedTarget }) => {
|
||||||
blurInput(relatedTarget);
|
blurInput(relatedTarget);
|
||||||
}}"
|
}}"
|
||||||
|
on:paste
|
||||||
/>
|
/>
|
||||||
{#if !$hasCalendar}
|
{#if !$hasCalendar}
|
||||||
{#if invalid}
|
{#if invalid}
|
||||||
|
|
|
@ -432,6 +432,7 @@
|
||||||
on:keyup
|
on:keyup
|
||||||
on:focus
|
on:focus
|
||||||
on:blur
|
on:blur
|
||||||
|
on:paste
|
||||||
disabled="{disabled}"
|
disabled="{disabled}"
|
||||||
placeholder="{placeholder}"
|
placeholder="{placeholder}"
|
||||||
id="{id}"
|
id="{id}"
|
||||||
|
|
|
@ -206,6 +206,7 @@
|
||||||
on:input="{onInput}"
|
on:input="{onInput}"
|
||||||
on:focus
|
on:focus
|
||||||
on:blur
|
on:blur
|
||||||
|
on:paste
|
||||||
/>
|
/>
|
||||||
{#if invalid}
|
{#if invalid}
|
||||||
<WarningFilled class="bx--number__invalid" />
|
<WarningFilled class="bx--number__invalid" />
|
||||||
|
|
|
@ -148,6 +148,7 @@
|
||||||
}
|
}
|
||||||
}}"
|
}}"
|
||||||
on:keyup
|
on:keyup
|
||||||
|
on:paste
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|
|
@ -114,7 +114,8 @@
|
||||||
on:keydown
|
on:keydown
|
||||||
on:keyup
|
on:keyup
|
||||||
on:focus
|
on:focus
|
||||||
on:blur></textarea>
|
on:blur
|
||||||
|
on:paste></textarea>
|
||||||
</div>
|
</div>
|
||||||
{#if !invalid && helperText}
|
{#if !invalid && helperText}
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -190,6 +190,7 @@
|
||||||
on:keyup
|
on:keyup
|
||||||
on:focus
|
on:focus
|
||||||
on:blur
|
on:blur
|
||||||
|
on:paste
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|
|
@ -201,6 +201,7 @@
|
||||||
on:keyup
|
on:keyup
|
||||||
on:focus
|
on:focus
|
||||||
on:blur
|
on:blur
|
||||||
|
on:paste
|
||||||
/>
|
/>
|
||||||
{#if isFluid}
|
{#if isFluid}
|
||||||
<hr class:bx--text-input__divider="{true}" />
|
<hr class:bx--text-input__divider="{true}" />
|
||||||
|
|
|
@ -111,6 +111,7 @@
|
||||||
on:keyup
|
on:keyup
|
||||||
on:focus
|
on:focus
|
||||||
on:blur
|
on:blur
|
||||||
|
on:paste
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<slot />
|
<slot />
|
||||||
|
|
|
@ -113,6 +113,7 @@
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}}"
|
}}"
|
||||||
|
on:paste
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue