svelteuidev / svelteui

SvelteUI Monorepo
https://svelteui.dev
MIT License
1.31k stars 62 forks source link

unknown prop warning with InputWrapper #475

Closed biolds closed 1 year ago

biolds commented 1 year ago

What package has an issue

@svelteuidev/core

A clear and concise description of what the bug is

Using the InputWrapper component (for example through the NativeSelect component) triggers a console warning:

<LabelElement> was created with unknown prop 'htmlFor'

In which browser(s) did the problem occur?

Firefox

Steps To Reproduce

Render a NativeSelect component, the same way as in the documentation (https://www.svelteui.org/core/native-select):

<NativeSelect data={['Svelte', 'React', 'Vue', 'Angular', 'Solid']} 
  placeholder="Pick one"
  label="Select your favorite framework/library"
  description="This is anonymous"
 />

Do you know how to fix the issue

Yes

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

Yes

Relevant Assets

No response