svelteuidev / svelteui

SvelteUI Monorepo
https://svelteui.dev
MIT License
1.27k stars 63 forks source link

ChipGroup doesn't support enum values #418

Open notramo opened 1 year ago

notramo commented 1 year ago

What package has an issue

@svelteuidev/core

A clear and concise description of what the bug is

Can't assign enum members to ChipGroup item value.

<script>
  enum MyEnum {
    Member = 1;
    AnotherMember = 2;
}
</script>
<ChipGroup
  items={[
    {
      label: 'this is a label',
      value: MyEnum.Member,
    }
  ]}
/>

In which browser(s) did the problem occur?

Chrome

Steps To Reproduce

.

Do you know how to fix the issue

No

Are you willing to participate in fixing this issue and create a pull request with the fix

No

Relevant Assets

No response

khalibloo commented 1 year ago

It looks like svelte might support type any for input values. It is currently restricted to strings in the codebase.