Skip to content

Commit

Permalink
feat(@vtmn/svelte): dispatch missing events on VtmnInput + export…
Browse files Browse the repository at this point in the history
… ref on `VtmnIcon` (#1469)
  • Loading branch information
Tlahey committed Oct 19, 2023
1 parent 4aa3ab8 commit 61417fb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@
on:change
on:blur
on:focus
on:keyup
on:keydown
on:keypress
class={componentClass}
{id}
{disabled}
Expand All @@ -108,6 +111,9 @@
on:change
on:blur
on:focus
on:keyup
on:keydown
on:keypress
class={componentClass}
type="text"
{id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
*/
export let variant = undefined;
/**
* Target reference of the icon
*/
export let ref = undefined;
let className = undefined;
/**
* @type {string} Custom classes to apply to the component.
Expand Down Expand Up @@ -52,7 +57,12 @@
}
</script>

<span class={componentClass} style={componentStyle} {...$$restProps} />
<span
bind:this={ref}
class={componentClass}
style={componentStyle}
{...$$restProps}
/>

<style>
@import '@vtmn/icons/dist/vitamix/font/vitamix.css';
Expand Down

0 comments on commit 61417fb

Please sign in to comment.